|
Geometry : |
Subject: Re: [geometry] Custom Line string in Boost Geometry Library
From: Mateusz Loskot (mateusz_at_[hidden])
Date: 2013-10-31 07:24:37
On 31 October 2013 10:49, Bruno Lalande <bruno.lalande_at_[hidden]> wrote:
> Hi Suresh,
>
> Sorry for the late reply, maybe you answered this by yourself. You need to
> add the keyword "typename" before all the expressions of the form
> std::vector<QPoint<T>>::iterator or std::vector<QPoint<T>>::const_iterator,
> etc... This is because vector<QPoint<T>> is a template-depending expression
> (depending on T) so the compiler cannot know before template instantiation
> that "::iterator" is a type, you have to tell it explicitly.
Replying to Bruno's post, but this actually may be helpful to Suresh
You may find explanation in the following section of the C++ reference helpful:
"The typename disambiguator for dependent names"
http://en.cppreference.com/w/cpp/language/dependent_name
Best regards,
-- Mateusz Loskot, http://mateusz.loskot.net
Geometry list run by mateusz at loskot.net