fork download
  1. #include <map>
  2.  
  3. struct a {
  4. std::map<int, int> x;
  5.  
  6. a() : x({{1,2}, {3,4}}) {}
  7. };
  8.  
  9. struct b {
  10. std::map<int, int> x;
  11.  
  12. b() : x{{1,2}, {3,4}} {}
  13. };
  14.  
  15. int main() {
  16. a a1;
  17. b b1;
  18. }
  19.  
Success #stdin #stdout 0s 2980KB
stdin
Standard input is empty
stdout
Standard output is empty