POV-Ray : Newsgroups : povray.off-topic : Adventures with C++ : Re: An actual C++ question Server Time
29 Jul 2024 04:21:11 EDT (-0400)
  Re: An actual C++ question  
From: scott
Date: 23 May 2013 11:58:47
Message: <519e3cb7$1@news.povray.org>
>> boost::shared_ptr<std::vector<Foo>> _foo(new std::vector<Foo>());
>>
>> I don't see how the >> is ambiguous at all in this statement. Seems to
>> me like lazy/bad parser design if this trips it up.
>
> It's not quite so cut and dry as you might guess.  For example:
...
>      cout << (boost::shared_ptr<std::vector<Foo>> _foo(NULL)) << endl;

Is that ambiguous?


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.