- Timestamp:
- Dec 10, 2008, 7:31:39 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Common/include/FromString.h
r81 r88 1 #ifndef morpheo_fromstring2 #define morpheo_fromstring1 #ifndef Morpheo_FromString_h 2 #define Morpheo_FromString_h 3 3 4 4 /* … … 27 27 } 28 28 29 template<> inline uint64_t fromString<uint64_t> (const std::string& x) 30 { 31 return static_cast<uint64_t>(atoll(x.c_str())); 32 } 33 34 template<> inline double fromString<double> (const std::string& x) 35 { 36 return static_cast<double>(atof(x.c_str())); 37 } 38 29 39 template<> inline bool fromString<bool> (const std::string& x) 30 40 {
Note: See TracChangeset
for help on using the changeset viewer.