Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ Moderated > Re: Partially c...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 6 Topic 9499 of 9828
Post > Topic >>

Re: Partially complete types

by Marcin Swiderski <sfider.best@[EMAIL PROTECTED] > Apr 15, 2008 at 11:21 PM

On 15 Kwi, 05:26, Greg Herlihy <gre...@[EMAIL PROTECTED]
> wrote:
>
> There is no reason to declare IParameter's virtual methods as pure -
> because the library does in fact provide implementations of those
> routines. Pure virtual methods necessitate that the client provide
> implementations - but there is no such requirement in this case.
>
Virtual method should be declared as pure if there is no
implementation
provided in class definition. IParameter is just an interface and as
such does not provide an implementation. If you won't declare it's
methods
as pure virtual, linker will fail.

Cheers
Sfider

-- 
      [ See http://www.gotw.ca/resources/clcm.htm
for info about ]
      [ comp.lang.c++.moderated.    First time posters: Do this! ]
 




 6 Posts in Topic:
Partially complete types
Vidar Hasfjord <vattil  2008-04-14 12:51:07 
Re: Partially complete types
"Alf P. Steinbach&qu  2008-04-14 21:23:05 
Re: Partially complete types
Greg Herlihy <greghe@[  2008-04-14 21:26:22 
Re: Partially complete types
Marcin Swiderski <sfid  2008-04-15 23:21:48 
Re: Partially complete types
Vidar Hasfjord <vattil  2008-04-16 03:57:21 
Re: Partially complete types
Vidar Hasfjord <vattil  2008-04-16 03:58:31 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Jul 24 15:48:23 CDT 2008.