mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-12-16 03:08:52 +08:00
520 B
520 B
+++ title = "conversion.hpp" type = "docs" +++
conversion.hpp
Provides macros to automatically define conversion functions for supporting user-defined types with toml::get and toml::find.
TOML11_DEFINE_CONVERSION_NON_INTRUSIVE(NAME, ...)
Example
namespace foo
{
struct Foo
{
std::string s;
double d;
int i;
};
} // foo
TOML11_DEFINE_CONVERSION_NON_INTRUSIVE(foo::Foo, s, d, i)
Related
- [from.hpp]({{<ref "from.md">}})
- [into.hpp]({{<ref "into.md">}})