variant-lite icon indicating copy to clipboard operation
variant-lite copied to clipboard

variant lite - A C++17-like variant, a type-safe union for C++98, C++11 and later in a single-file header-only library

Results 6 variant-lite issues
Sort by recently updated
recently updated
newest added

No std::add_pointer, std::is_same and std::enable_if but have std::tr1::add_pointer and std::tr1::is_same. I modify macro and compile successfully: ```cpp #define variant_HAVE_CONDITIONAL variant_CPP11_120 #define variant_HAVE_REMOVE_CV variant_CPP11_120 #define variant_HAVE_STD_ADD_POINTER variant_CPP11_100 //

Try as I might, I cannot use `nonstd::visit` on C++14 to mutate the item currently stored in a variant. If I change to `-std=c++17` (and therefore use `std::variant`), it works....

After the adding r-value ref `get` methods overloading logic of `visit` method invocation became broken. Now, the result of the invocation is always r-value ref which can cause curious compilation...

See PR #11 - [x] Acknowledgment: mention configurable visitor - [ ] Add section on configuring variant types and visitor arguments (mentioned in *In a nutshell*) - [ ] Update...

This updates [actions/checkout](https://github.com/actions/checkout) in the GitHub Actions workflows to v4, it's current version. Changelog: > ## v4.1.0 > - Add support for partial checkout filters > > ## v4.0.0 >...

Hi The following code does not compile using MSVC 142 (19.35.32215 from VS 2022) using C++14 standard ```c++ #include #include "variant.hpp" int main() { std::pair y2 = {"a", "b"}; }...