|
Boost : |
From: Beman Dawes (bdawes_at_[hidden])
Date: 2003-12-17 15:17:43
At 12:59 PM 12/17/2003, David Abrahams wrote:
>IIUC Exporting a class template in a DLL instantiates all of its
>non-template member functions, so yes, that's the problem.
>
>There are a few possible fixes:
>
> 1. stop exporting it; make everything inline (you can dispatch to
> exported implementation functions).
>
> 2. provide dummy advance and decrement functions
>
>I'm sure there are a few others, but those are the ones that are
>obvious to me. I prefer #1 because it prevents misuse from compiling.
I'l have to think about it a bit, but #1 also seems better to me.
Thanks for the suggestions,
--Beman
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk