We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb39c14 commit 13fb18eCopy full SHA for 13fb18e
examples/conversions.cpp
@@ -53,5 +53,8 @@ int main()
53
54
root->get_as<int64_t>("medium-negative");
55
56
+ root->insert("float", 0.1f);
57
+ root->get_as<double>("float");
58
+
59
return 0;
60
}
include/cpptoml.h
@@ -331,6 +331,7 @@ template <class T>
331
struct value_traits<
332
T, typename std::enable_if<
333
!valid_value_or_string_convertible<T>::value
334
+ && !std::is_floating_point<typename std::decay<T>::type>::value
335
&& std::is_signed<typename std::decay<T>::type>::value>::type>
336
{
337
using value_type = int64_t;
0 commit comments