Update of /cvsroot/boost/boost/boost/parameter/aux_
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv24282
Modified Files:
tagged_argument.hpp
Log Message:
Borland workaround
Index: tagged_argument.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/parameter/aux_/tagged_argument.hpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- tagged_argument.hpp 17 Feb 2006 19:33:42 -0000 1.9
+++ tagged_argument.hpp 24 Jul 2006 14:37:20 -0000 1.10
@@ -21,11 +21,13 @@
struct empty_arg_list;
struct arg_list_tag;
+struct tagged_argument_base {};
+
// Holds a reference to an argument of type Arg associated with
// keyword Keyword
template <class Keyword, class Arg>
-struct tagged_argument
+struct tagged_argument : tagged_argument_base
{
typedef Keyword key_type;
typedef Arg value_type;
@@ -163,23 +165,12 @@
typedef arg_list_tag tag; // For dispatching to sequence intrinsics
};
-template <class K, class T>
-char is_tagged_argument_check(tagged_argument<K,T> const*);
-char(&is_tagged_argument_check(...))[2];
-
// Defines a metafunction, is_tagged_argument, that identifies
-// tagged_argument specializations.
-// MAINTAINER NOTE: Not using BOOST_DETAIL_IS_XXX_DEF here because
-// we need to return true for tagged_argument<K,T> const.
+// tagged_argument specializations and their derived classes.
template <class T>
struct is_tagged_argument_aux
-{
- enum { value =
- sizeof(is_tagged_argument_check((T*)0)) == 1
- };
-
- typedef mpl::bool_<value> type;
-};
+ : is_convertible<T*,tagged_argument_base const*>
+{};
template <class T>
struct is_tagged_argument
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs