, 12 2020 . 03:12
+
Dushevny: ( , C++17):
template
struct a
{
template
static int constexpr AA = aa;
};
template
struct b
{
static int constexpr BB1 = a<3>::AA<2>;
static int constexpr BB2 = a::AA<2>;
};
, BB1 , BB2 :
a.cpp:12:47: error: expected primary-expression before ; token
12 | static int constexpr BB2 = a::AA<2>;
| ^
BB2.
https://forum.sources.ru/index.php?showtopic=419647&view=findpost&p=3838749
:
C/C++: