Commit 6abfeb88 authored by Mark Olesen's avatar Mark Olesen
Browse files

COMP: unneeded conversion method to base class

- conversion still needed in the specializations for primitives but
  not in the generic case
parent 091baa91
......@@ -119,9 +119,6 @@ public:
//- Assignment operator.
inline void operator=(const hashedWordList&);
//- Allow readonly access to list of words
inline operator const Foam::UList<word>&() const;
//- Return name corresponding to specified index
inline const word& operator[](const label index) const;
......
......@@ -27,7 +27,9 @@ Class
Description
Traits class for primitives.
All primitives need a specialised version of this class
All primitives need a specialised version of this class. The
specialised version will normally also require a conversion
method.
\*---------------------------------------------------------------------------*/
......@@ -66,21 +68,6 @@ public:
:
PrimitiveType(is)
{}
// Member operators
//- Access to the primitive
operator PrimitiveType() const
{
return *this;
}
//- Access to the primitive
operator PrimitiveType&()
{
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