avoid name clashing
This commit is contained in:
parent
ca96d3e137
commit
21a121df18
1 changed files with 6 additions and 6 deletions
|
@ -28,19 +28,19 @@
|
|||
#include <exception>
|
||||
#include <string>
|
||||
|
||||
namespace mapnik { namespace value {
|
||||
namespace mapnik {
|
||||
|
||||
class error : public std::exception
|
||||
class value_error : public std::exception
|
||||
{
|
||||
public:
|
||||
error() :
|
||||
value_error() :
|
||||
what_() {}
|
||||
|
||||
error( std::string const& what ) :
|
||||
value_error( std::string const& what ) :
|
||||
what_( what )
|
||||
{}
|
||||
|
||||
virtual ~error() throw() {}
|
||||
virtual ~value_error() throw() {}
|
||||
|
||||
virtual const char * what() const throw()
|
||||
{
|
||||
|
@ -56,6 +56,6 @@ protected:
|
|||
mutable std::string what_;
|
||||
};
|
||||
|
||||
}}
|
||||
}
|
||||
|
||||
#endif // MAPNIK_VALUE_ERROR_HPP
|
||||
|
|
Loading…
Add table
Reference in a new issue