added operator<< to attribute
This commit is contained in:
parent
e3ef6b3384
commit
a5237d5db5
1 changed files with 10 additions and 1 deletions
|
@ -193,7 +193,16 @@ namespace mapnik
|
|||
T t;
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue