I am having an issue with make_unique that I am at a loss with.
_replace_find = unique_ptr<Fl_Input>(new Fl_Input{ 80, 10, 210, 25, "Find:" });
_replace_find = make_unique<Fl_Input>(Fl_Input{ 80, 10, 210, 25, "Find:" });
when I use the make_unique line it gives me this error, but when I use the other it compiles just fine. From my understanding make_unique pretty much does the same thing, but is exception safe.
Error 1 error C2248: 'Fl_Widget::Fl_Widget' : cannot access private member declared in class 'Fl_Widget' c:\program files (x86)\microsoft visual studio 12.0\vc\include\fl\fl_input_.h 488 1 hayley
I couldn't find anything with that error dealing with make_unique or unique_ptr on SO. I wouldn't be asking this otherwise.
as always thank you for your time and advice.