Re: ATL/WTL CString code bloat
Dick Dievendorff <[email protected]>
| Newsgroups | gmane.comp.windows.wtl |
|---|---|
| Message-ID | <[email protected]> |
My understanding of the conventional wisdom is to let the compiler and linker deal with this issue. Inline means that the function/method MAY be expanded inline, but the compiler is not required to inline the code. Most template code is defined in headers and inline functions. It's generally the linker's job to common up method implementations and discard uncalled methods Dick Sent from my iPhone On Jun 13, 2009, at 13:59, "Richard B." <dj_deipotent-/[email protected]> wrote: > > > Given that ATL/WTL's CString class has all of the methods inlined, > would I be right in thinking that using CString can result in > code-bloat if it's used heavily ? > > I would imagine the same is also true of STL's string as well. > > In these cases, I was thinking of creating my own CString class, based > on ATL's/WTL's version, but with most methods defined out-of-line. > > -- > Best regards, > Richard B. > > [Non-text portions of this message have been removed] ------------------------------------ Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/wtl/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/wtl/join (Yahoo! ID required) <*> To change settings via email: mailto:[email protected] mailto:[email protected] <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/