1>V:\Trunk\stable\src\Include\Tools/async.h(268): error C2664:
'boost::unique_future<R>::unique_future(boost::unique_future<R> &)' : cannot convert
parameter 1 from 'boost::unique_future<R>' to 'boost::unique_future<R> &'
1> with
1> [
1> R=boost::optional<in_addr> &
1> ]
1> and
1> [
1> R=boost::optional<in_addr>
1> ]
1> and
1> [
1> R=boost::optional<in_addr> &
1> ]
But my other test cases of using unique_future (with simple types) work OK.
—John
_______________________________________________
Boost-users mailing list
Boost...@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users
This passes my unit tests, but fails on a piece of code that has a function returning an
instantiation of boost::optional.
It seems confused as to whether the value held in the optional is as-specified or has a
reference added to it.
I wonder if this is a specific issue with optional that might be
addressed/worked-around/patched, or perhaps there is a way to enable declspec-based
testing just for the code that wanted it and not globally?