awslabs / aws-crt-cpp

C++ wrapper around the aws-c-* libraries. Provides Cross-Platform Transport Protocols and SSL/TLS implementations for C++.
Apache License 2.0
73 stars 64 forks source link

Basic version of Variant type using C++11 #599

Closed SergeyRyabinin closed 6 months ago

SergeyRyabinin commented 6 months ago

Issue #, if available: for C++ SDK Description of changes: Adding a basic version of a type/container Variant that represents a very basic version of std::variant but using C++11 and disabled exceptions.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

sbiscigl commented 6 months ago

any plan on adding a a version of std::visit to this? I think if we added it alongside variant a whole new realm of static polymorphism opens up to us.