From e84eb3f1ba7b162c2c683ca05181f4ad56fe2f47 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Tue, 20 Aug 2002 11:08:11 +0000 Subject: [PATCH] Added #pragma's to fix codeguard errors. [SVN r14984] --- include/boost/detail/shared_count.hpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/include/boost/detail/shared_count.hpp b/include/boost/detail/shared_count.hpp index 299fadb..6de061a 100644 --- a/include/boost/detail/shared_count.hpp +++ b/include/boost/detail/shared_count.hpp @@ -202,6 +202,13 @@ inline void intrusive_ptr_release(counted_base * p) namespace detail { +// +// Borland's Codeguard trips up over the -Vx- option here: +// +#ifdef __CODEGUARD__ +#pragma option push -Vx- +#endif + template class counted_base_impl: public counted_base { private: @@ -344,6 +351,11 @@ public: } }; +#ifdef __CODEGUARD__ +#pragma option pop +#endif + + class weak_count { private: