Skip to content
Snippets Groups Projects
Commit 695766af authored by Mark OLESEN's avatar Mark OLESEN
Browse files

COMP: no constexpr methods for older gcc (nullObject)

parent 8600d6ba
No related merge requests found
......@@ -107,31 +107,31 @@ public:
}
//- Zero valued integer content
inline constexpr unsigned long value() const
inline unsigned long value() const
{
return 0;
}
//- No elements
inline constexpr bool empty() const
inline bool empty() const
{
return true;
}
//- Zero elements
inline constexpr label size() const
inline label size() const
{
return 0;
}
//- No-op method (for HashTable replacement)
inline constexpr const NullObject& toc() const
inline const NullObject& toc() const
{
return *this;
}
//- No-op method (for HashTable replacement)
inline constexpr const NullObject& sortedToc() const
inline const NullObject& sortedToc() const
{
return *this;
}
......@@ -141,7 +141,7 @@ public:
//- Swallow assignment (cf, std::ignore)
template<class T>
inline constexpr const NullObject& operator=(const T&) const
inline const NullObject& operator=(const T&) const
{
return *this;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment