Compile error with initializer_list when trying to use it to initialize member value of class
- by ilektron
I am trying to make a class initializable from an initialization_list in a class constructor's constructor's initialization list. It works for a std::map, but not for my custom class. I don't see any difference other than templates are used in std::map.
#include <iostream>
#include <initializer_list>
#include <string>
#include…