wxruby-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Wxruby-dev] Question about my template approach


From: Curt Hibbs
Subject: RE: [Wxruby-dev] Question about my template approach
Date: Sat, 24 May 2003 11:10:28 -0500

Kevin Smith wrote:
>
> Currently, my template prototype puts all the code for each class inside
> the class declaration, like Java. This means all the code would go in a
> .h file, and the only reason to have a .cpp file is if there was a large
> amount of custom code for a class.
>
> Can anyone think of a reason why we would have to have the template
> preprocessor create the wrapping glue method bodies in a .cpp file
> instead of directly in the .h file?

This is ok if no other code includes those particular .h files. However, if
any of these are included elsewhere, then you will get link errors
complaining of duplicate implementations.

Curt





reply via email to

[Prev in Thread] Current Thread [Next in Thread]