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
namespace {
using A = decltype(5);
decltype(5) B = A();
}
This effects decltype, static_assert, template deduction guides (migh not be incorrect however), some macros.
This is because the namespace pattern includes :constructors before $base.
Removing :constructors seems to have almost no negative side effects. (One exception is test::test(){} is not tagged as a constructor, it is also not tagged outside of a namespace currently as well, so a better solution should be found). I cannot think of why constructors should be treated differently inside/outside a namespace.
The text was updated successfully, but these errors were encountered:
matter123
changed the title
When in a namespace function like keywords at start of line is tagged as a constructor.
When in a namespace, function like keywords at start of line is tagged as a constructor.
Apr 4, 2019
Example code:
This effects
decltype
,static_assert
, template deduction guides (migh not be incorrect however), some macros.This is because the namespace pattern includes
:constructors
before$base
.Removing
:constructors
seems to have almost no negative side effects. (One exception istest::test(){}
is not tagged as a constructor, it is also not tagged outside of a namespace currently as well, so a better solution should be found). I cannot think of why constructors should be treated differently inside/outside a namespace.The text was updated successfully, but these errors were encountered: