forked from arximboldi/lager
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request arximboldi#153 from cyrilRomain/master
Support monostate variant serialization
- Loading branch information
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// | ||
// lager - library for functional interactive c++ programs | ||
// Copyright (C) 2017 Juan Pedro Bolivar Puente | ||
// | ||
// This file is part of lager. | ||
// | ||
// lager is free software: you can redistribute it and/or modify | ||
// it under the terms of the MIT License, as detailed in the LICENSE | ||
// file located at the root of this source code distribution, | ||
// or here: <https://github.com/arximboldi/lager/blob/master/LICENSE> | ||
// | ||
|
||
#include "cerealize.hpp" | ||
#include <catch.hpp> | ||
#include <lager/extra/cereal/variant_with_name.hpp> | ||
|
||
TEST_CASE("basic") | ||
{ | ||
auto x = std::variant<int, std::monostate, float>{std::monostate{}}; | ||
auto y = cerealize(x); | ||
CHECK(x == y); | ||
} |