Re[6]: std::variant для вложенного класса
От: sergii.p  
Дата: 04.12.25 15:48
Оценка: 16 (1) +1
Здравствуйте, rg45, Вы писали:

R>Вот если бы ещё получить ссылку на соответствующий пункт стандарта, было бы совсем здорово.


[class.mem.general]

[Note 4 : A complete-class context of a nested class is also a complete-class context of any enclosing class, if the nested
class is defined within the member-specification of the enclosing class. — end note]
7 A class is considered a completely-defined object type (6.8) (or complete type) at the closing } of the
class-specifier. The class is regarded as complete within its complete-class contexts; otherwise it is regarded
as incomplete within its own class member-specification.

 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.