Improved C++11-branch of PropertyManager and at the same time fixed compile error with gcc 4.7.

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@889 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
Hans-Christian Ebke
2013-08-07 08:03:40 +00:00
parent 6e970852c5
commit 6d70b25445

View File

@@ -69,6 +69,11 @@ namespace OpenMesh {
*/ */
template<typename PROPTYPE, typename MeshT> template<typename PROPTYPE, typename MeshT>
class PropertyManager { class PropertyManager {
#if __cplusplus > 199711L or __GXX_EXPERIMENTAL_CXX0X__
public:
PropertyManager(const PropertyManager&) = delete;
PropertyManager& operator=(const PropertyManager&) = delete;
#else
private: private:
/** /**
* Noncopyable because there aren't no straightforward copy semantics. * Noncopyable because there aren't no straightforward copy semantics.
@@ -78,7 +83,8 @@ class PropertyManager {
/** /**
* Noncopyable because there aren't no straightforward copy semantics. * Noncopyable because there aren't no straightforward copy semantics.
*/ */
const PropertyManager& operator=(const PropertyManager&); PropertyManager& operator=(const PropertyManager&);
#endif
public: public:
/** /**