martinmoene / variant-lite

variant lite - A C++17-like variant, a type-safe union for C++98, C++11 and later in a single-file header-only library
Boost Software License 1.0
239 stars 26 forks source link

Falling back to standard variant header for newer compilers #4

Closed agauniyal closed 6 years ago

agauniyal commented 6 years ago

I see you've macro checks for c++ standards and a bunch of others for compilers and was wondering is it possible to fall back to standard headers if compilers provide them? This idea is somewhat similar to what abseil library does with their headers and I could've missed it if you already had a code in these headers for that 😅

martinmoene commented 6 years ago

Yeah, good idea, which I've only done for invoke-lite so far I see. I'll take a look at it.