Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve support for unusual C++ map types
Summary: Some C++ maps have an unusual reference / const_reference type. For example, std::flat_map, which uses: std::pair<const key_type&, mapped_type&> std::pair<const key_type&, const mapped_type&> We would previously hit an error like this: ``` thrift/lib/cpp2/protocol/Cpp2Ops.h:43:3: error: static assertion failed due to requirement 'sizeof(const Foo&) == ~0ULL': (only Thrift-generated classes are serializable) ``` Here I strip off the cvref qualifiers. Reviewed By: vitaut Differential Revision: D59979468 fbshipit-source-id: dc3b60ceb485ba0b0688ba0ccf7ab0b6544aa61b
- Loading branch information