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 25 forks source link

Result value of the `visit` method is always r-value ref #28

Open flexferrum opened 5 years ago

flexferrum commented 5 years ago

After the adding r-value ref get methods overloading logic of visit method invocation became broken. Now, the result of the invocation is always r-value ref which can cause curious compilation result:

https://travis-ci.org/flexferrum/Jinja2Cpp/jobs/449091716