2
0
mirror of https://github.com/boostorg/pfr.git synced 2026-01-19 04:22:13 +00:00

Improved error message and fixes for C++14

This commit is contained in:
Antony Polukhin
2017-08-13 11:48:14 +03:00
parent 78251885b4
commit 1dfcc666c1
2 changed files with 4 additions and 4 deletions

View File

@@ -15,9 +15,9 @@ struct foo_t { int i; nested_t nested; };
static_assert(std::is_same<
boost::pfr::flat_tuple_element_t<1, foo_t>, // Flat reflection
boost::pfr::flat_tuple_element_t<1, foo_t>, // Flat reflection.
char // `char`, not `nested_t`!
>::value);
>::value, "");
// Requires C++17:
@@ -26,7 +26,7 @@ static_assert(std::is_same<
static_assert(std::is_same<
boost::pfr::tuple_element_t<1, foo_t>, // Precise reflection.
nested_t
>::value); //<-
>::value, ""); //<-
#endif //->
//] [/pfr_intro]