]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/filesystem/path_traits.hpp
import quincy beta 17.1.0
[ceph.git] / ceph / src / boost / boost / filesystem / path_traits.hpp
index 48a0f1218317ed4c7efaf45bcac8ad3647976af9..f003a8bf8768d3d4889d0218883c462b97d4a737 100644 (file)
@@ -226,25 +226,25 @@ namespace path_traits {
   template <class U> inline
     void dispatch(const std::string& c, U& to, const codecvt_type& cvt)
   {
-    if (c.size())
+    if (!c.empty())
       convert(&*c.begin(), &*c.begin() + c.size(), to, cvt);
   }
   template <class U> inline
     void dispatch(const std::wstring& c, U& to, const codecvt_type& cvt)
   {
-    if (c.size())
+    if (!c.empty())
       convert(&*c.begin(), &*c.begin() + c.size(), to, cvt);
   }
   template <class U> inline
     void dispatch(const std::vector<char>& c, U& to, const codecvt_type& cvt)
   {
-    if (c.size())
+    if (!c.empty())
       convert(&*c.begin(), &*c.begin() + c.size(), to, cvt);
   }
   template <class U> inline
     void dispatch(const std::vector<wchar_t>& c, U& to, const codecvt_type& cvt)
   {
-    if (c.size())
+    if (!c.empty())
       convert(&*c.begin(), &*c.begin() + c.size(), to, cvt);
   }
 
@@ -252,25 +252,25 @@ namespace path_traits {
   template <class U> inline
     void dispatch(const std::string& c, U& to)
   {
-    if (c.size())
+    if (!c.empty())
       convert(&*c.begin(), &*c.begin() + c.size(), to);
   }
   template <class U> inline
     void dispatch(const std::wstring& c, U& to)
   {
-    if (c.size())
+    if (!c.empty())
       convert(&*c.begin(), &*c.begin() + c.size(), to);
   }
   template <class U> inline
     void dispatch(const std::vector<char>& c, U& to)
   {
-    if (c.size())
+    if (!c.empty())
       convert(&*c.begin(), &*c.begin() + c.size(), to);
   }
   template <class U> inline
     void dispatch(const std::vector<wchar_t>& c, U& to)
   {
-    if (c.size())
+    if (!c.empty())
       convert(&*c.begin(), &*c.begin() + c.size(), to);
   }
 
@@ -281,7 +281,7 @@ namespace path_traits {
     typename boost::disable_if<boost::is_array<Container>, void>::type
     dispatch(const Container & c, U& to, const codecvt_type& cvt)
   {
-    if (c.size())
+    if (!c.empty())
     {
       std::basic_string<typename Container::value_type> s(c.begin(), c.end());
       convert(s.c_str(), s.c_str()+s.size(), to, cvt);
@@ -316,7 +316,7 @@ namespace path_traits {
     typename boost::disable_if<boost::is_array<Container>, void>::type
     dispatch(const Container & c, U& to)
   {
-    if (c.size())
+    if (!c.empty())
     {
       std::basic_string<typename Container::value_type> seq(c.begin(), c.end());
       convert(seq.c_str(), seq.c_str()+seq.size(), to);