mirror of
https://github.com/boostorg/variant.git
synced 2026-01-19 04:42:16 +00:00
dd728220b00772cee5d3aea5850a2bb09eecc66b
otherwise in C++ 17 mode Clang 8 will complain about the
protected destructor:
```
main.cpp:16:33: error: temporary of type 'boost::static_visitor<>' has protected destructor
boost::apply_visitor(output{}, v);
^
/usr/local/opt/boost/include/boost/variant/static_visitor.hpp:53:5: note: declared protected here
~static_visitor() = default;
^
```
See also discussion in https://reviews.llvm.org/D53860
Boost.Variant
Boost.Variant, part of collection of the Boost C++ Libraries. It is a safe, generic, stack-based discriminated union container, offering a simple solution for manipulating an object from a heterogeneous set of types in a uniform manner.
Test results
| @ | Build | Tests coverage | More info |
|---|---|---|---|
| Develop branch: | ![]() |
details... | |
| Master branch: | ![]() |
details... |
License
Distributed under the Boost Software License, Version 1.0.
Description
Languages
C++
99.6%
CMake
0.2%
HTML
0.2%

