Commit 695766af authored by Mark Olesen's avatar Mark Olesen
Browse files

COMP: no constexpr methods for older gcc (nullObject)

parent 8600d6ba
......@@ -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;
}
......
Markdown is supported
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