I think this is impossible, but I can ask. Can I declare a private Copy-Constructor and use the standard implementation?
Background: I have a class with very large vectors, and I do not want to call the copy constructor, except for one member function. Using the standard public copy-ctor can easily lead to errors, for example, for example. forgetting the link in iteration ( foreach(Type el,vectOfBigObjects) instead foreach(Type const& el,vectOfBigObjects)). So I want to keep the standard constructor, but just make it private.
Is this possible without rewriting the definition of copy-ctors?
source
share