You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I expected the case where no arguments are passed to expand to nothing, note that MAP has the same behaviour.
I fixed for my case by changing definition of TRANSFORM_DECLTYPE to #define TRANSFORM_DECLTYPE(...) __VA_OPT__(decltype(__VA_ARGS__)) but that would only work for C++2a compilers.
The text was updated successfully, but these errors were encountered:
In the above example, MAP_LIST(TRANSFORM_DECLTYPE, __VA_ARGS__) is expanded to MAP_LIST(TRANSFORM_DECLTYPE, ) which has a semicolon and an "empty" argument after it. The semicolon can be avoided using ##__VA_ARGS__. However it doesn't fix the issue.
A shorter example:
Results in:
I expected the case where no arguments are passed to expand to nothing, note that
MAP
has the same behaviour.I fixed for my case by changing definition of
TRANSFORM_DECLTYPE
to#define TRANSFORM_DECLTYPE(...) __VA_OPT__(decltype(__VA_ARGS__))
but that would only work for C++2a compilers.The text was updated successfully, but these errors were encountered: