Subject: [Boost-bugs] [Boost C++ Libraries] #5184: optional_test.cpp confuses libc++
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-02-13 22:03:51
#5184: optional_test.cpp confuses libc++
------------------------------+---------------------------------------------
Reporter: chrisj | Owner: fcacciola
Type: Patches | Status: new
Milestone: To Be Determined | Component: optional
Version: Boost 1.45.0 | Severity: Problem
Keywords: |
------------------------------+---------------------------------------------
The advised way of specialising swap is just to write:
void swap(mytype&, mytype&)
rather than:
template<>
void swap(mytype&, mytype&)
using template<> confuses libc++, which uses namespace versioning.
I don't believe these template<> add anything to the test, which still
passes on g++ without them. The attached patch removes them from
optional_test.cpp
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/5184> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:05 UTC