Menu

#124 inner class copy ctor, assignment ctor

1.10.2
open
5
2004-06-30
2004-06-30
No

Visual Studio .Net reports 4511 and 4512 warnings about
copy constructors and assignment constructors. I
believe you don't want these ctor defaults from the
compiler and do want to prevent their definition.
Example: ProtectorChain::ProtectFunctor
If that's right, you should add these lines
---
private:
// prevent copy or assignment operator default
definition by compiler
ProtectFunctor( const ProtectFunctor &other );
ProtectFunctor &operator=( const ProtectFunctor
&other );
--
These entries will fix the warning, at least.
Of course, if you DO want the copy and assignment
ctors, you should add them.

Other Classes that have this warning include:
TestSuiteBuilderContextBase

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.