You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: include/boost/pfr.hpp
+9-4Lines changed: 9 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -7,10 +7,15 @@
7
7
#defineBOOST_PFR_HPP
8
8
9
9
/// \file boost/pfr.hpp
10
-
/// Includes all the Boost.PFR headers, except \xmlonly<link linkend='header.boost.pfr.flat.global_ops_hpp'>boost/pfr/flat/global_ops.hpp</link>\endxmlonly and \xmlonly<link linkend='header.boost.pfr.precise.global_ops_hpp'>boost/pfr/precise/global_ops.hpp</link>\endxmlonly
static_assert(sizeof(T) && false, "====================> Boost.PFR: Calling boost::pfr::get on non const non assignable type is allowed only in C++17");
62
+
return0;
63
+
}
64
+
#endif
54
65
55
-
/// \brief `tuple_element` has a `typedef type-of-a-field-with-index-I-in-aggregate-T type;`
56
-
///
57
-
/// \b Requires: C++17 or \flatpod{C++14 flat POD or C++14 with not disabled Loophole}.
static_assert(sizeof(T) && false, "====================> Boost.PFR: Calling boost::pfr::structure_tie on non const non assignable type is allowed only in C++17");
# warning PFR library supports MSVC compiler only with /std:c++latest or /std:c++17 flag. Assuming that you`ve used it. Define `BOOST_PFR_USE_CPP17` to 1 to suppress this warning.
34
-
# defineBOOST_PFR_USE_CPP171
43
+
# elif defined(_MSVC_LANG)
44
+
# if _MSVC_LANG >= 201703L
45
+
# defineBOOST_PFR_USE_CPP171
46
+
# else
47
+
# defineBOOST_PFR_USE_CPP170
48
+
# if !BOOST_PFR_USE_LOOPHOLE
49
+
# error Boost.PFR requires /std:c++latest or /std:c++17 flags on your compiler.
"====================> Boost.PFR: Not possible in C++14 to represent that type without loosing information. Use boost::pfr::flat_ version, or change type definition, or enable C++17"
573
+
"====================> Boost.PFR: Not possible in C++14 to represent that type without loosing information. Change type definition or enable C++17"
0 commit comments