|
Boost : |
From: John Torjo (john.groups_at_[hidden])
Date: 2007-11-09 23:42:50
Hi Jens,
Applied your patch. Thanks!
About the extra colons - my mistake - first I used classes, then moved
to namespaces.
Best,
John
#include <boost/logging/detail/fwd.hpp>
@@ -42,10 +38,20 @@
#else
+#ifdef BOOST_LOG_TSS_USE_CUSTOM
// in case the user specified a custom class, maybe he specified its name as well
#define BOOST_LOG_TSS_DEFAULT_CLASS BOOST_LOG_TSS_USE_CUSTOM
+
+#else
+
+// use internal implementation
+#include <boost/logging/detail/tss/tss_impl.hpp>
+#define BOOST_LOG_TSS_DEFAULT_CLASS = ::boost::logging::thread_specific_ptr
+
#endif
+#endif
+
----> note : no need, I do this on macros.hpp (define BOOST_LOG_TSS_USE_CUSTOM if none is defined)
namespace boost { namespace logging {
@@ -81,12 +87,5 @@
#endif // !BOOST_LOG_NO_TSS
-- http://John.Torjo.com -- C++ expert ... call me only if you want things done right
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk