Workaround for bugs #10771 and #6720.

This commit is contained in:
Ion Gaztañaga
2014-12-17 15:45:05 +01:00
parent 281629b94e
commit 12ee566796
9 changed files with 27 additions and 14 deletions

View File

@@ -44,7 +44,8 @@ namespace intrusive {
template<class NodeTraits, class F>
struct rbtree_node_cloner
: private detail::ebo_functor_holder<F>
//Use public inheritance to avoid MSVC bugs with closures
: public detail::ebo_functor_holder<F>
{
typedef typename NodeTraits::node_ptr node_ptr;
typedef detail::ebo_functor_holder<F> base_t;