Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
proton-0.11.0
Description
Compiling 0.11 leads to build failure in the tests for the C++ bindings:
[...]
Linking CXX shared library libqpid-proton-cpp.dylib
[ 66%] Built target qpid-proton-cpp
Scanning dependencies of target conversion_test
[ 66%] Building CXX object proton-c/bindings/cpp/CMakeFiles/conversion_test.dir/src/conversion_test.cpp.o
/Users/roberto/Src/ERC/GIT/qpid-proton-0.11.0/proton-c/bindings/cpp/src/conversion_test.cpp:36:17: error:
no viable constructor copying variable of type 'std::unique_ptr<session>'
session_ptr p = s.ptr();
^ ~~~~~~~
/Users/roberto/Src/ERC/GIT/qpid-proton-0.11.0/proton-c/bindings/cpp/src/conversion_test.cpp:58:25: note:
in instantiation of function template specialization
'test_owning<std::__1::unique_ptr<proton::connection,
std::__1::default_delete<proton::connection> >,
std::_1::unique_ptr<proton::session, std::_1::default_delete<proton::session> > >'
requested here
failed += run_test(&test_owning<
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:2497:5: note:
candidate constructor not viable: expects an l-value for 1st argument
unique_ptr(unique_ptr&);
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:2499:9: note:
candidate constructor [with _Up = proton::session, _Ep =
std::__1::default_delete<proton::session>] not viable: expects an l-value for 1st
argument
unique_ptr(unique_ptr<_Up, _Ep>&);
^
/Users/roberto/Src/ERC/GIT/qpid-proton-0.11.0/proton-c/bindings/cpp/src/conversion_test.cpp:37:17: error:
no viable constructor copying variable of type 'std::unique_ptr<session>'
session_ptr p2 = s.ptr();
^ ~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:2497:5: note:
candidate constructor not viable: expects an l-value for 1st argument
unique_ptr(unique_ptr&);
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:2499:9: note:
candidate constructor [with _Up = proton::session, _Ep =
std::__1::default_delete<proton::session>] not viable: expects an l-value for 1st
argument
unique_ptr(unique_ptr<_Up, _Ep>&);
^
2 errors generated.
make[2]: *** [proton-c/bindings/cpp/CMakeFiles/conversion_test.dir/src/conversion_test.cpp.o] Error 1
make[1]: *** [proton-c/bindings/cpp/CMakeFiles/conversion_test.dir/all] Error 2
make: *** [all] Error 2