cpprestsdk icon indicating copy to clipboard operation
cpprestsdk copied to clipboard

making tasks handle types with no default constructor

Open julienlopez opened this issue 4 years ago • 0 comments

Hello,

Working on a small toy project, I could use support for types with no default constructor in tasks.

From what I've seen in the code, that could be handled pretty easily and with no major drawback with an std::optional if c++17 is activated.

Would it be possible to include something like this ? (I can work on a PR if it's ok)

What would be the prefered way to manage this? add a compile option? do it by default when c++17 is activated? something else?

julienlopez avatar Oct 14 '21 11:10 julienlopez