I am having issue when trying to pass a reference object inside std::optional as a function argument.Does it not support storing reference objects ? Example -
void fun(std::optional<ClassA& obj>)
What exatly does this error mean -
static_assert failed due to requirement '!is_reference
static_assert(!is_reference_v<_Tp>)