commit | a18ef6f1f9d2a32519192feedadb7814461db488 | [log] [tgz] |
---|---|---|
author | Eric Fiselier <[email protected]> | Thu Feb 09 19:01:22 2017 |
committer | Eric Fiselier <[email protected]> | Thu Feb 09 19:01:22 2017 |
tree | 4fc1e1307463d028cfcdc4661bc1dab955142192 | |
parent | 29eeea00e12ee33728ead258c7d6466d79f8ca1d [diff] |
Fix PR31916 - std::visit rejects visitors accepting lvalue arguments A static assertion was misfiring since it checked is_callable<Visitor, decltype(__variant_alt<T>.value)>. However the decltype expression doesn't capture the value category as required. This patch applies extra braces to decltype to fix that. llvm-svn: 294612