added operator<< to attribute

This commit is contained in:
Artem Pavlenko 2005-04-13 20:21:56 +00:00
parent e3ef6b3384
commit a5237d5db5

View file

@ -194,6 +194,15 @@ namespace mapnik
is >> t;
return attribute(t);
}
template <typename charT, typename traits>
inline std::basic_ostream<charT,traits>&
operator << (std::basic_ostream<charT,traits>& out,
const attribute& attr)
{
out << attr.to_string();
return out;
}
}
#endif //ATTRIBUTE_HH