Re: [boost] [Signals] BCB patchlet

2003-07-13 Thread Douglas Gregor
> This removes a "possible use of 'tag' before definition" warning with
> BCB.

I didn't use this actual patch (I'd rather avoid pragmas when there's a
reasonable in-language workaround), but the code I checked in should get rid
of the warning on BCB (not that Signals compiles at the moment!). Sorry for
the delay.

Doug

___
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost


[boost] [Signals] BCB patchlet

2003-06-26 Thread Malte Starostik
This removes a "possible use of 'tag' before definition" warning with
BCB.

--- slot.hpp.orig   Thu Jun 26 13:29:32 2003
+++ slot.hppThu Jun 26 13:30:28 2003
@@ -88,8 +88,14 @@ namespace boost {
 typename BOOST_SIGNALS_NAMESPACE::detail::get_slot_tag::type
 tag_type(const F&)
 {
+#ifdef __BORLANDC__
+# pragma option push -w-8013
+#endif
   typename BOOST_SIGNALS_NAMESPACE::detail::get_slot_tag::type
tag;
   return tag;
+#ifdef __BORLANDC__
+# pragma option pop
+#endif
 }

   } // end namespace BOOST_SIGNALS_NAMESPACE

Regards,
-Malte

___
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost