Skip to content

Commit 83f53a7

Browse files
author
Daniel Kroening
committed
add an implementation of std::variant<...>
This allows strengthening type safety in a number of data structures we already have.
1 parent 1b3a4ce commit 83f53a7

File tree

4 files changed

+2841
-0
lines changed

4 files changed

+2841
-0
lines changed

.clang-format-ignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
jbmc/src/miniz/miniz.cpp
22
src/nonstd/optional.hpp
3+
src/nonstd/variant.hpp
34
unit/catch/catch.hpp

src/nonstd/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,8 @@
55

66
`nonstd` contains implementations of C++ utilities that are not yet
77
part of the standard library, e.g. for `optional`.
8+
9+
variant.hpp implements `variant`; it is
10+
https://github.com/mpark/variant/blob/single-header/v1.4.0/variant.hpp
11+
License is at
12+
https://github.com/mpark/variant/blob/single-header/LICENSE.md

0 commit comments

Comments
 (0)