From 72bc46bdf559ee283301db00c5eabbdfd95275c2 Mon Sep 17 00:00:00 2001 From: Gennadiy Rozental Date: Tue, 25 May 2004 11:01:25 +0000 Subject: [PATCH] make npos to have a named type [SVN r22920] --- include/boost/test/detail/basic_cstring/basic_cstring.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/boost/test/detail/basic_cstring/basic_cstring.hpp b/include/boost/test/detail/basic_cstring/basic_cstring.hpp index 6a3d8ea8..b5dff318 100644 --- a/include/boost/test/detail/basic_cstring/basic_cstring.hpp +++ b/include/boost/test/detail/basic_cstring/basic_cstring.hpp @@ -55,7 +55,7 @@ public: //!! should also present reverse_iterator, const_reverse_iterator - enum { npos = -1 }; + enum npos_type { npos = (size_type)-1 }; static pointer null_str(); // Constructors; default copy constructor is generated by compiler @@ -701,6 +701,9 @@ last_char( basic_cstring source ) // Revision History : // // $Log$ +// Revision 1.3 2004/05/25 11:01:25 rogeeff +// make npos to have a named type +// // Revision 1.2 2004/05/21 06:19:35 rogeeff // licence update //