Commit ed9cdbc2 authored by Philipp A. Hartmann's avatar Philipp A. Hartmann

GenericStringRef: disallow assignment, const string pointer

parent 8bbf41f7
......@@ -270,10 +270,12 @@ struct GenericStringRef {
//! implicit conversion to plain CharType pointer
operator const Ch *() const { return s; }
const Ch* s; //!< plain CharType pointer
const Ch* const s; //!< plain CharType pointer
const SizeType length; //!< length of the string (excluding the trailing NULL terminator)
private:
//! Disallow copy-assignment
GenericStringRef operator=(const GenericStringRef&);
//! Disallow construction from non-const array
template<SizeType N>
GenericStringRef(CharType (&str)[N]) /* = delete */;
......
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