C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

what does this line mean?

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++)
View previous topic :: View next topic  
Author Message
Binary
Guest





PostPosted: Tue Oct 24, 2006 9:10 am    Post subject: what does this line mean? Reply with quote



Hi,

I am curious the second half of this line:

const unsigned int ctorCount = BaseClass::GetCtorCount();
(void)ctorCount;

What is the purpose of (void)ctorCount; ?

TIA.
ABAI
Back to top
Bo Yang
Guest





PostPosted: Tue Oct 24, 2006 9:10 am    Post subject: Re: what does this line mean? Reply with quote



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Binary :
Quote:
Hi,

I am curious the second half of this line:

const unsigned int ctorCount = BaseClass::GetCtorCount();
(void)ctorCount;

What is the purpose of (void)ctorCount; ?

TIA.
ABAI

This line can oppress the warning of the ctorCount

was'n used .

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFPcki7tZp58UCwyMRAtBAAKCVrkBX7CIu+1y0v9C6e+KD0c77cgCg1rAt
zFmSZLdu7RZY+mCkLcVJ4zA=
=IAkv
-----END PGP SIGNATURE-----
Back to top
Alf P. Steinbach
Guest





PostPosted: Tue Oct 24, 2006 9:10 am    Post subject: Re: what does this line mean? Reply with quote



* Binary:
Quote:
Hi,

I am curious the second half of this line:

const unsigned int ctorCount = BaseClass::GetCtorCount();
(void)ctorCount;

What is the purpose of (void)ctorCount; ?

It has no purpose except possibly in the programmer's imagination.

--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
Back to top
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.