- Timestamp:
- 07/20/11 10:27:47 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/Dim.h
r11003 r11484 53 53 inline bool SendCommand(const std::string &command, const T &t) 54 54 { 55 return DimClient::sendCommand(command.c_str(), (void*)&t, sizeof(t)); 55 return DimClient::sendCommand(command.c_str(), const_cast<T*>(&t), sizeof(t)); 56 } 57 58 template<> 59 inline bool SendCommand(const std::string &command, const std::string &t) 60 { 61 return DimClient::sendCommand(command.c_str(), const_cast<char*>(t.c_str()), t.length()+1); 56 62 } 57 63
Note:
See TracChangeset
for help on using the changeset viewer.