|
Boost Users : |
Subject: Re: [Boost-users] [counting_range] why?
From: Marshall Clow (mclow.lists_at_[hidden])
Date: 2012-11-28 12:53:29
On Nov 28, 2012, at 9:36 AM, "Jeffrey Lee Hellrung, Jr." <jeffrey.hellrung_at_[hidden]> wrote:
> On Wed, Nov 28, 2012 at 9:17 AM, Robert Jones <robertgbjones_at_[hidden]> wrote:
> Ok, maybe I'm having a senior moment here, but why is the second line wrong?
>
> Thx, Rob.
>
> #include <boost/range/counting_range.hpp>
>
> int main( )
> {
> // Ok
> auto r = boost::counting_range( 0, 3 );
>
> // Not Ok.
> auto s = boost::counting_range<int>( 0, 3 );
> }
>
> Looks okay to me. How is it wrong? Compiler error? What compiler, what version of Boost, and what's the error?
Compiles fine for me with clang.
-- Marshall
Marshall Clow Idio Software <mailto:mclow.lists_at_[hidden]>
A.D. 1517: Martin Luther nails his 95 Theses to the church door and is promptly moderated down to (-1, Flamebait).
-- Yu Suzuki
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