View Code? Open in Web Editor
NEW
any lite - A C++17-like any, a type-safe container for single values of any type for C++98, C++11 and later in a single-file header-only library
License: Boost Software License 1.0
C++ 69.42%
Batchfile 5.43%
CMake 11.53%
Python 12.83%
Starlark 0.78%
any-lite's People
any-lite's Issues
any: ../main.cpp:21: int main(): Assertion `any_caststd::string(var) == hello' failed.
As documented in the reference, std::swap
needs <algorithm>
prior to C++11.
Building the C++98 version of tests fail in Linux with GCC 12.1.1.
This works by adding the following to any.hpp
.
#if !any_CPP11_OR_GREATER
#include <algorithm>
#endif