Я просматривал чужой код и наткнулся на эквивалент этого:
Код: Выделить всё
#include
struct Foo {
void bar();
};
// Notice that there are two Foo::
inline void Foo::Foo::bar() {
std::cout
Источник: [url]https://stackoverflow.com/questions/78154811/why-does-declaration-with-double-identifier-compile[/url]
Мобильная версия