Hi,
More strange: by adding an unused static method, the behavior
of the previous templates change.
$ cat toto6.cpp
#include
struct X {
template struct check_is_map {
static constexpr bool value = false;
};
template
struct check_is_map {
static constexpr bool value
Package: g++-11
Version: 11.2.0-19
Severity: normal
Contrary to clang++, g++ does not honor "friend" statement when evaluating
template specialization
Here is a short example:
$ cat toto6.cpp
#include
struct X {
template struct check_is_map {
static constexpr bool value = false;
};
2 matches
Mail list logo