lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master 485ada4 3/3: Extend numeric_io_cast<> to embr


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 485ada4 3/3: Extend numeric_io_cast<> to embrace long long integers
Date: Tue, 23 May 2017 19:46:55 -0400 (EDT)

branch: master
commit 485ada4a36be830ec2d3a5d6ca62746e251b8e84
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Extend numeric_io_cast<> to embrace long long integers
    
    This change was necessary for x86_64-w64-mingw32.
---
 numeric_io_traits.hpp | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/numeric_io_traits.hpp b/numeric_io_traits.hpp
index 19477ca..6d18604 100644
--- a/numeric_io_traits.hpp
+++ b/numeric_io_traits.hpp
@@ -235,8 +235,6 @@ template<> struct numeric_conversion_traits<long int>
         {return std::strtol(nptr, endptr, 10);}
 };
 
-// SOMEDAY !! Consider supporting type long long int when C++ does.
-#if 0
 template<> struct numeric_conversion_traits<long long int>
     :public numeric_conversion_traits<Integral>
 {
@@ -245,7 +243,6 @@ template<> struct numeric_conversion_traits<long long int>
     static T strtoT(char const* nptr, char** endptr)
         {return std::strtoll(nptr, endptr, 10);}
 };
-#endif // 0
 
 template<> struct numeric_conversion_traits<unsigned int>
     :public numeric_conversion_traits<Integral>
@@ -274,8 +271,6 @@ template<> struct numeric_conversion_traits<unsigned long 
int>
         {return std::strtoul(nptr, endptr, 10);}
 };
 
-// SOMEDAY !! Consider supporting type long long int when C++ does.
-#if 0
 template<> struct numeric_conversion_traits<unsigned long long int>
     :public numeric_conversion_traits<Integral>
 {
@@ -284,7 +279,6 @@ template<> struct numeric_conversion_traits<unsigned long 
long int>
     static T strtoT(char const* nptr, char** endptr)
         {return std::strtoull(nptr, endptr, 10);}
 };
-#endif // 0
 
 struct Floating{};
 template<> struct numeric_conversion_traits<Floating>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]