Boost logo

Boost Users :

Subject: Re: [Boost-users] [Range] Extending the library for a base class and all its derived - enable_if
From: Albert Yiamakis (vkicefire_at_[hidden])
Date: 2014-04-24 21:19:50


On 24/04/14 15:00, Avi Kivity wrote:
>
> Would something like
>
> template <typename C>
> struct range_iterator<typename enable_if<is_base_of<Base, C>,
> C>::type> { ... };
>
> work?

This does not compile.

Albert


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net