[Boost-bugs] [Boost C++ Libraries] #2472: ptr_sequence_adapter<T>::sort fails to compile if T is an abstract base class

Subject: [Boost-bugs] [Boost C++ Libraries] #2472: ptr_sequence_adapter<T>::sort fails to compile if T is an abstract base class
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-11-04 05:15:18


#2472: ptr_sequence_adapter<T>::sort fails to compile if T is an abstract base
class
--------------------------+-------------------------------------------------
 Reporter: anonymous | Owner: nesotto
     Type: Bugs | Status: new
Milestone: Boost 1.38.0 | Component: ptr_container
  Version: Boost 1.36.0 | Severity: Problem
 Keywords: |
--------------------------+-------------------------------------------------
 When calling ptr_vector<T>::sort, where T is an abstract base class I get
 the following compilation error, on MSVC++2008:


 {{{
 error C2027: use of undefined type 'boost::result_of<F>'
 1> with
 1> [
 1> F=MyFunctorName(T,T)
 1> ]
 }}}


 By making T a non-abstract base class (even though there should never be
 an element of type T in the container) the code compiles and runs as
 expected; therefore I believe I'm not missing any header files, nor is my
 compare functor faulted, so it might be a bug on the library.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/2472>
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:49:59 UTC