mirror of
https://github.com/jezhiggins/arabica
synced 2025-01-30 08:38:15 +01:00
added copy constructor to KeyFunction::UriMapper - some compilers want to copy, while the cooler ones can optimise that copy away :)
This commit is contained in:
parent
4eeda060a6
commit
8f97c52f8a
1 changed files with 3 additions and 2 deletions
|
@ -111,6 +111,7 @@ private:
|
|||
{
|
||||
public:
|
||||
UriMapper(const std::map<std::string, std::string>& namespaces) : namespaces_(namespaces) { }
|
||||
UriMapper(const UriMapper& rhs) : namespaces_(rhs.namespaces_) { }
|
||||
|
||||
std::string operator()(const std::string& prefix) const
|
||||
{
|
||||
|
@ -123,9 +124,9 @@ private:
|
|||
private:
|
||||
const std::map<std::string, std::string>& namespaces_;
|
||||
|
||||
UriMapper(const UriMapper&);
|
||||
bool operator==(const UriMapper&) const;
|
||||
UriMapper& operator=(const UriMapper&);
|
||||
}; // class UriMapper
|
||||
|
||||
}; // class KeyFunction
|
||||
|
||||
// string format-number(number, string, string?)
|
||||
|
|
Loading…
Add table
Reference in a new issue