-
Notifications
You must be signed in to change notification settings - Fork 93
Open
Description
https://godbolt.org/z/81bKWTx9M
Using BOOST_HOF_LIFT at function scope fails with
<source>(14): error C2951: template declarations are only permitted at global, namespace, or class scope
<source>(14): error C2892: a template cannot be a member of a local class
<source>(15): fatal error C1506: unrecoverable block scoping error
whereas it works correctly under GCC and Clang. The reason is probably
hof/include/boost/hof/lift.hpp
Line 89 in 0a28586
| #if defined (_MSC_VER) |
_MSC_VER is defined, but not its value.
In addition, checking _MSC_VER before __clang__ is wrong because clang-cl defines both.
Metadata
Metadata
Assignees
Labels
No labels