This commit is contained in:
Artem Pavlenko 2012-02-14 18:34:29 +00:00
parent dc4cc8f197
commit 7e8207236e

View file

@ -36,35 +36,35 @@
namespace boost { namespace spirit { namespace traits { namespace boost { namespace spirit { namespace traits {
template <> template <>
struct is_container<mapnik::geometry_type const> : mpl::true_ {} ; struct is_container<mapnik::geometry_type const> : mpl::true_ {} ;
template <> template <>
struct container_iterator<mapnik::geometry_type const> struct container_iterator<mapnik::geometry_type const>
{ {
typedef mapnik::util::vertex_iterator<double> type; typedef mapnik::util::vertex_iterator<double> type;
}; };
template <> template <>
struct begin_container<mapnik::geometry_type const> struct begin_container<mapnik::geometry_type const>
{ {
static mapnik::util::vertex_iterator<double> static mapnik::util::vertex_iterator<double>
call (mapnik::geometry_type const& g) call (mapnik::geometry_type const& g)
{ {
return mapnik::util::vertex_iterator<double>(g.data()); return mapnik::util::vertex_iterator<double>(g.data());
} }
}; };
template <> template <>
struct end_container<mapnik::geometry_type const> struct end_container<mapnik::geometry_type const>
{ {
static mapnik::util::vertex_iterator<double> static mapnik::util::vertex_iterator<double>
call (mapnik::geometry_type const& g) call (mapnik::geometry_type const& g)
{ {
return mapnik::util::vertex_iterator<double>(); return mapnik::util::vertex_iterator<double>();
} }
}; };
}}} }}}
#endif // CONTAINER_ADAPTER_HPP #endif // CONTAINER_ADAPTER_HPP