libcpp4ec
C++ for EtherCat Library
 All Classes Functions Variables Typedefs Enumerations Enumerator
EcUtil.h
1 #ifndef ECUTIL_H
2 #define ECUTIL_H
3 
4 #include <stdint.h>
5 #include <string>
6 #include <iostream>
7 #include <sstream>
8 
9 
10 
11 namespace cpp4ec
12 {
13 
14  template<class T>
15  inline std::string to_string(const T& t, std::ios_base & (*f)(std::ios_base&))
16  {
17  std::stringstream ss;
18  ss << f << t;
19  return ss.str();
20  };
21 
22 
23 }
24 
25 
26 #endif
Definition: EcMaster.h:37