Update of /cvsroot/boost/boost/boost/bind
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv18738/boost/bind
Modified Files:
arg.hpp
Log Message:
is_placeholder, is_bind_expression added.
Index: arg.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/bind/arg.hpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- arg.hpp 26 Jul 2004 00:31:59 -0000 1.5
+++ arg.hpp 6 Jul 2006 13:47:26 -0000 1.6
@@ -19,18 +19,44 @@
// See http://www.boost.org/libs/bind/bind.html for documentation.
//
+#include <boost/config.hpp>
+#include <boost/is_placeholder.hpp>
+
namespace boost
{
-template<int I> class arg
+template< int I > struct arg
{
+ arg()
+ {
+ }
+
+ template< class T > arg( T const & /* t */ )
+ {
+ // static assert I == is_placeholder<T>::value
+ typedef char T_must_be_placeholder[ I == is_placeholder<T>::value? 1:
-1 ];
+ }
};
-template<int I> bool operator==(arg<I> const &, arg<I> const &)
+template< int I > bool operator==( arg<I> const &, arg<I> const & )
{
return true;
}
+#if !defined( BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION )
+
+template< int I > struct is_placeholder< arg<I> >
+{
+ enum _vt { value = I };
+};
+
+template< int I > struct is_placeholder< arg<I> (*) () >
+{
+ enum _vt { value = I };
+};
+
+#endif
+
} // namespace boost
#endif // #ifndef BOOST_BIND_ARG_HPP_INCLUDED
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs