I have a struct that I'd like to initialize using an initializer list
struct Parent{};
struct Child : private Parent {
int b;
};
int main() {
Child c{ 1 };
return 0;
}
Looking at other questions I found this answer that states that it should be possible in c++17.
However when I try the above snippet in VS2017 I get
Error C2440 'initializing': cannot convert from 'initializer list' to 'child'
Is there any way to utilize this new feature?