Boost logo

Boost :

Subject: Re: [boost] [type_erasure] Review started (July 18-27, 2012)
From: Paul A. Bristow (pbristow_at_[hidden])
Date: 2012-08-08 05:09:43


> -----Original Message-----
> From: boost-bounces_at_[hidden] [mailto:boost-bounces_at_[hidden]] On Behalf Of Steven
> Watanabe
> Sent: Tuesday, August 07, 2012 11:29 PM
> To: boost_at_[hidden]
> Subject: Re: [boost] [type_erasure] Review started (July 18-27, 2012)
>
> AMDG
>
> This is an explicit specialization which uses a class called Os. I think you intended a partial
> specialization:
>
> template<class Os>
> struct ostreamable<Os, std::pair<const int, double> >;

I've placed this just before my int main(){...}

namespace boost {
namespace type_erasure {

// Partial specialization of struct ostreamable:
template<class Os>
struct ostreamable<Os, std::pair<const int, double> >;

} // namespace type_erasure
} // namespace boost

looks more promising but still fails inside the magic of type_erasure.

 type_erasure_print_map.cpp
I:\boost-sandbox\type_erasure\boost/type_erasure/detail/get_signature.hpp(23): error C2027: use of
undefined type 'boost::type_erasure::ostreamable<Os,T>'
          with
          [
              Os=std::basic_ostream<char,std::char_traits<char>>,
              T=std::pair<const int,double>
          ]
          I:\boost-sandbox\type_erasure\boost/type_erasure/detail/get_signature.hpp(25) : see
reference to class template instantiation
'boost::type_erasure::detail::get_signature<Concept>::nested' being compiled
          with
          [
 
Concept=boost::type_erasure::ostreamable<std::basic_ostream<char,std::char_traits<char>>,std::pair<c
onst int,double>>
          ]
          I:\boost-sandbox\type_erasure\boost/type_erasure/detail/adapt_to_vtable.hpp(235) : see
reference to class template instantiation 'boost::type_erasure::detail::get_signature<Concept>'
being compiled
          with
          [
 
Concept=boost::type_erasure::ostreamable<std::basic_ostream<char,std::char_traits<char>>,std::pair<c
onst int,double>>
          ]
 ...

Full message in all its glory attached ;-)

Suggestions?

Thanks

Paul

---
Paul A. Bristow,
Prizet Farmhouse, Kendal LA8 8AB  UK
+44 1539 561830  07714330204
pbristow_at_[hidden]



Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk