
22 Jan
2013
22 Jan
'13
5:11 p.m.
That's a bit 'sad' given that 'most' platforms/compilers support builtin atomic operations/instructions... Is there anyway (e.g. define a configuration macro) to make the library work as header-only on those platforms (e.g. x86 and ARM)?
No, currently there isn't one. You mean that even if I only instantiate Boost.Atomic templates for hardware/OS supported types while only including the header(s) (w/o explicit linking) I will get linker errors?
i'm not really familiar with the autolinking stuff for win32, but checking the sources, it seems you can disable it with by defining BOOST_ATOMIC_NO_LIB ...