mpark / variant

C++17 `std::variant` for C++11/14/17
https://mpark.github.io/variant
Boost Software License 1.0
659 stars 88 forks source link

Try to support older versions of GCC #13

Closed mpark closed 7 years ago

mpark commented 7 years ago

Currently, the lack of type traits such as is_trivially_constructible prevent compilation on GCC 4.9. Consider replacing the middle layers with a simpler is_trivially_copyable definition from #8.

mpark commented 7 years ago

With lack of relaxed constexpr support in < GCC 5, I think I'll hold off on this unless it is requested. UPDATE: I've backported to C++11, which means the relaxed constexpr is no longer an issue.

mpark commented 7 years ago

Doesn't seem to be worth the pain, at least for now.