-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom conversion doesn't work #83
Comments
I think the documentation is incorrect ( EDIT: |
I tried to define a custom specialization of
toml::from
for my type, but it ends up with a compile time error.Here's the code:
Apart from a bunch of template substitution failure errors, I get
toml11/toml/get.hpp:415:3: note: template argument deduction/substitution failed:
toml11/toml/get.hpp:259:26: error: invalid application of ‘sizeof’ to incomplete type ‘toml::into’
std::size_t S = sizeof(::toml::into)>
^~~~~~~~~~~~~~~~~~~~~~~
toml11/toml/get.hpp:259:48: error: could not convert template argument ‘’ from ‘’ to ‘long unsigned int’
std::size_t S = sizeof(::toml::into)>
Compiled with g++ 8.3.0 with -std=c++17.
Using the latest toml11 cloned from GitHub.
Is this a bug or am I doing something wrong?
The text was updated successfully, but these errors were encountered: