struct with default members initializers cannot be inside class and used as default argument

前端 未结 0 1250
面向向阳花
面向向阳花 2021-01-24 04:18

The following code does not compile:

#include 

struct toto {
  struct options final {
    bool option1 = false;
    bool option2 = false;
  };

          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题