Skip to content

Instantly share code, notes, and snippets.

@parsa
Last active February 26, 2018 22:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parsa/4c8e83fe26b83e7018966cdf0742e4a0 to your computer and use it in GitHub Desktop.
Save parsa/4c8e83fe26b83e7018966cdf0742e4a0 to your computer and use it in GitHub Desktop.
hpx::util::optional<int> x;
int z = 1.;
x = z; // Fails
x = std::move(z) // Works
// hpx\hpx\util\optional.hpp(254): error C2660: 'hpx::util::optional<double>::swap': function does not take 2 arguments
// hpx\hpx\util\optional.hpp(151): note: while compiling class template member function 'hpx::util::optional<double> &hpx::util::optional<double>::operator =(const T &)'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment