| Subject: | Re: attribute on a static member of a template class |
|---|---|
| From: | "jinxidoru" |
| Date: | 8 May 2006 18:24:24 -0700 |
| Newsgroups: | gnu.g++.help |
I figured out how to do this, so I figured I might as well post it here
in case anyone was wondering. I added the following constructor:
myclass() { if ( false ) do_me_first(); }
This causes the compiler to create the function and place it in the
object file, but the constructor is optimized out by the linker.
I still figure there should be a better way to do this, but this will
work in the mean time.
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: what does this mean _M_insert_aux, Thomas Maeder |
|---|---|
| Next by Date: | Re: stl vector slower than pointer access, 4zumanga |
| Previous by Thread: | attribute on a static member of a template class, jinxidoru |
| Next by Thread: | Avoiding _Unwind_SjLj_Register/Unregister, mike-list@xxxxxxxxx |
| Indexes: | [Date] [Thread] [Top] [All Lists] |