| 913 | } |
| 914 | |
| 915 | void |
| 916 | streamout(stringstream& oss, const char* s, int length) |
| 917 | { |
| 918 | // Can't find a way to get stringstream to truncate a stream. |
| 919 | if (length != 0) |
| 920 | oss.write(s, length); |
| 921 | else |
| 922 | oss << s; |
| 923 | } |
| 924 | |
| 925 | template <typename T> |
| 926 | void streamout(stringstream&oss, T value, int) |