Skip to content

Commit

Permalink
Add MSVC 2019 to build, default ctor for static object
Browse files Browse the repository at this point in the history
relates #592
  • Loading branch information
AzothAmmo committed Dec 29, 2019
1 parent 02eace1 commit d18302c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
13 changes: 9 additions & 4 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# can use variables like {build} and {branch}
version: 1.2.{build}
version: 1.3.{build}
pull_requests:
do_not_increment_build_number: true

Expand All @@ -22,9 +22,14 @@ environment:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
VS_VERSION_MAJOR: 15
BOOST_ROOT: C:\Libraries\boost_1_66_0
# - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019 Preview
# VS_VERSION_MAJOR: 16
# BOOST_ROOT: C:\Libraries\boost_1_66_0
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
VS_VERSION_MAJOR: 16
BOOST_ROOT: C:\Libraries\boost_1_71_0

matrix:
exclude:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
- platform: Win32

platform:
- Win32
Expand Down
3 changes: 2 additions & 1 deletion include/cereal/details/static_object.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ namespace cereal
std::unique_lock<std::mutex> lock;
#else
public:
LockGuard(LockGuard const &) = default; // prevents implicit copy ctor warning
LockGuard() = default;
LockGuard(LockGuard const &) = default; // prevents implicit copy ctor warning
~LockGuard() CEREAL_NOEXCEPT {} // prevents variable not used
#endif
};
Expand Down

0 comments on commit d18302c

Please sign in to comment.