Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r80891 - sandbox/type_erasure/boost/type_erasure/detail
From: steven_at_[hidden]
Date: 2012-10-06 15:10:44


Author: steven_watanabe
Date: 2012-10-06 15:10:43 EDT (Sat, 06 Oct 2012)
New Revision: 80891
URL: http://svn.boost.org/trac/boost/changeset/80891

Log:
Work around gcc 4.7 problem.
Text files modified:
   sandbox/type_erasure/boost/type_erasure/detail/vtable.hpp | 14 ++++++++++++++
   1 files changed, 14 insertions(+), 0 deletions(-)

Modified: sandbox/type_erasure/boost/type_erasure/detail/vtable.hpp
==============================================================================
--- sandbox/type_erasure/boost/type_erasure/detail/vtable.hpp (original)
+++ sandbox/type_erasure/boost/type_erasure/detail/vtable.hpp 2012-10-06 15:10:43 EDT (Sat, 06 Oct 2012)
@@ -143,6 +143,20 @@
     }
 };
 
+// Provide this specialization manually.
+// gcc 4.7.2 fails to instantiate the primary template.
+template<>
+struct vtable_storage<>
+{
+ vtable_storage() = default;
+
+ template<class Bindings, class Src>
+ void convert_from(const Src& src) {}
+
+ bool operator==(const vtable_storage& other) const
+ { return true; }
+};
+
 template<class... T>
 struct make_vtable_impl<stored_arg_pack<T...> >
 {


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk