any icon indicating copy to clipboard operation
any copied to clipboard

Implementation of std::experimental::any, including small object optimization, for C++11 compilers

Results 6 any issues
Sort by recently updated
recently updated
newest added

Is it possible to version this impl of an any? Either with a branch or a tag? I've started using it and we prefer to be using versioned releases rather...

According to cppreference documentation (can't find the latest draft), the C++17 interface for `std::any` is a bit different from the one we are basing on, `std::experimental::any`. Function names changed and...

I've added a few features to the class, I know these are not in the standard so I don't expect you to merge them into master but putting them here...

Probably draft was updated since the original implementation. These member functions are very essential AFAIK. Reference: http://en.cppreference.com/w/cpp/utility/any

Corresponding paper https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2021/p1413r3.pdf and discussions https://github.com/cplusplus/papers/issues/197. In short, the recommended replacement is : ```cpp std::aligned_storage storage; // becomes: alignas(T) unsigned char storage[sizeof(T)]; ```

I used any to storage the type of wstring value, when I get the value, any_cast will be failed.