Added const to Document/Array::isType

This commit is contained in:
fbraem 2015-05-28 16:32:00 +02:00
parent ca1a79f6b1
commit 623dfe7606
2 changed files with 2 additions and 2 deletions

View File

@ -62,7 +62,7 @@ public:
/// An empty element will be returned when the element is not found.
template<typename T>
bool isType(int pos)
bool isType(int pos) const
/// Returns true when the type of the element equals the TypeId of ElementTrait
{
return Document::isType<T>(Poco::NumberFormatter::format(pos));

View File

@ -154,7 +154,7 @@ public:
/// An empty element will be returned when the element is not found.
template<typename T>
bool isType(const std::string& name)
bool isType(const std::string& name) const
/// Returns true when the type of the element equals the TypeId of ElementTrait
{
Element::Ptr element = get(name);