Relative Content

Tag Archive for c++stdoptional

optional vector of enum initializer list

In the following case, when using assignment on an optional vector of enum values I cannot explain the behavior of the code. Why does assignment of ... = {C} compile and create a vector of size 2, while ... = {2} does not compile?