Author: wyoung
Date: Thu Mar 29 19:15:10 2007
New Revision: 1482

URL: http://svn.gna.org/viewcvs/mysqlpp?rev=1482&view=rev
Log:
Type casting tweaks to avoid warnings with VC++2005

Modified:
    trunk/lib/const_string.h

Modified: trunk/lib/const_string.h
URL: 
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/const_string.h?rev=1482&r1=1481&r2=1482&view=diff
==============================================================================
--- trunk/lib/const_string.h (original)
+++ trunk/lib/const_string.h Thu Mar 29 19:15:10 2007
@@ -86,14 +86,14 @@
        /// \brief Initialize string from existing C string
        const_string(const char* str) :
        str_data_(str),
-       length_(strlen(str))
+       length_(size_type(strlen(str)))
        {
        }
        
        /// \brief Initialize string from existing C string of known length
        const_string(const char* str, size_type len) :
        str_data_(str),
-       length_(len)
+       length_(size_type(len))
        {
        }
        
@@ -101,7 +101,7 @@
        const_string& operator=(const char* str)
        {
                str_data_ = str;
-               length_ = strlen(str);
+               length_ = size_type(strlen(str));
                return *this;
        }
 


_______________________________________________
Mysqlpp-commits mailing list
[email protected]
https://mail.gna.org/listinfo/mysqlpp-commits

Reply via email to