brigand icon indicating copy to clipboard operation
brigand copied to clipboard

Should as_variant adapts to std::variant?

Open lichray opened this issue 6 years ago • 2 comments

Currently it adapts to boost::variant, which looks either outdated or non-flexible.

lichray avatar May 25 '19 18:05 lichray

This would break C++11 incompatibility so I think making it adapt to std::variant to me seems like it would be less flexible. One option could be to have a macro flag that enables std::variant instead of boost::variant.

nilsdeppe avatar May 25 '19 22:05 nilsdeppe

we can also have brigand::as_std_variant next to it and have the file dependently included. Also you can use wrap manually if you want to anyway.

jfalcou avatar Nov 19 '19 11:11 jfalcou