Skip to content

Commit

Permalink
Add CI tests run on msvc-14.3 in C++20 mode (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
apolukhin committed Aug 11, 2023
1 parent 963460a commit e61fa13
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,10 @@ jobs:
cxxstd: "03,11,14,17,2a"
addrmd: 64
os: windows-2019
# - toolset: msvc-14.3
# cxxstd: "14,17,20,latest"
# addrmd: 32,64
# os: windows-2022
- toolset: msvc-14.3
cxxstd: "20,latest"
addrmd: 64
os: windows-2022

runs-on: ${{matrix.os}}

Expand Down Expand Up @@ -174,7 +174,7 @@ jobs:
shell: cmd
run: |
cd ../boost-root
b2 -j3 libs/%LIBRARY%/test toolset=${{matrix.toolset}} cxxstd=${{matrix.cxxstd}} address-model=${{matrix.addrmd}} variant=debug,release
b2 -j2 libs/%LIBRARY%/test toolset=${{matrix.toolset}} cxxstd=${{matrix.cxxstd}} address-model=${{matrix.addrmd}} variant=debug,release
finish:
needs: posix
Expand Down
6 changes: 6 additions & 0 deletions test/core/run/non_movable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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; };
Expand All @@ -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();
Expand Down

0 comments on commit e61fa13

Please sign in to comment.