mirror of
https://github.com/fraillt/bitsery.git
synced 2026-08-25 20:48:28 +00:00
extensions for tuple, variant and chrono types
This commit is contained in:
@@ -26,11 +26,9 @@
|
||||
|
||||
#if __cplusplus > 201402L
|
||||
|
||||
#include <optional>
|
||||
#include <bitsery/ext/std_optional.h>
|
||||
#include <bitsery/ext/value_range.h>
|
||||
|
||||
|
||||
using StdOptional = bitsery::ext::StdOptional;
|
||||
|
||||
using BPSer = SerializationContext::TSerializer::BPEnabledType;
|
||||
@@ -122,6 +120,10 @@ TEST(SerializeExtensionStdOptional, NoAlignAfterStateWriteRead) {
|
||||
EXPECT_THAT(t1.value(), Eq(r1.value()));
|
||||
}
|
||||
|
||||
|
||||
|
||||
#else
|
||||
#if defined(_MSC_VER)
|
||||
#pragma message("Tests for StdOptional requires C++17")
|
||||
#else
|
||||
#warning "Tests for StdOptional requires C++17"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user