mirror of
https://github.com/boostorg/pfr.git
synced 2026-01-19 04:22:13 +00:00
Add CI tests run on msvc-14.3 in C++20 mode (#136)
This commit is contained in:
@@ -18,7 +18,11 @@ struct X {
|
||||
struct S { X x0; X x1; int x2; X x3; };
|
||||
|
||||
int main() {
|
||||
|
||||
#if BOOST_PFR_HAS_GUARANTEED_COPY_ELISION
|
||||
|
||||
// MSVC-14.3 fails this test
|
||||
#if !defined(_MSC_VER) || _MSC_VER < 1930 || _MSC_VER > 1939
|
||||
static_assert(boost::pfr::tuple_size_v<S> == 4, "");
|
||||
|
||||
struct S5_0 { int x0; int x1; int x2; int x3; X x4; };
|
||||
@@ -38,6 +42,8 @@ int main() {
|
||||
|
||||
struct S6 { X x0; X x1; X x2; X x3; X x4; X x5;};
|
||||
static_assert(boost::pfr::tuple_size_v<S6> == 6, "");
|
||||
#endif
|
||||
|
||||
#endif // #if BOOST_PFR_HAS_GUARANTEED_COPY_ELISION
|
||||
|
||||
return boost::report_errors();
|
||||
|
||||
Reference in New Issue
Block a user