Frank wrote:
I 'm trying to put the implementation into a dll and mark the explicit instantiation of Normal as exported with the following results: 1) With the small_dim_ctor's enabled I get the static assertion when marked for export 2) With the small_dim_ctor's enabled everything is ok when not marked for export 3) With the small_dim_ctor's disabled everything is ok regardless of export marking 4) If I comment out the BOOST_STATIC_ASSERT and build my app with export enabled I can use the resulting dll without any problems
I'm thinking that marking for export is somewhow generating an implicit conversion somewhere but I don't know how.
I suppose marking the class for export could instantiate all member functions and constructors and thus trigger the static assertions. Have you considered using boost::enable_if instead of BOOST_STATIC_ASSERT? Regards, João Abecasis