A method const with std::future
Solution 1:
Remove the const. There is no reason why that function should be const. Lying in your interface is never a good idea.
Remove the const. There is no reason why that function should be const. Lying in your interface is never a good idea.