diff options
Diffstat (limited to 'include/mcl/operator.hpp')
-rw-r--r-- | include/mcl/operator.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mcl/operator.hpp b/include/mcl/operator.hpp index 7198929..29a66f5 100644 --- a/include/mcl/operator.hpp +++ b/include/mcl/operator.hpp @@ -136,6 +136,7 @@ struct Serializable : public E { buf[n] = '\0'; return n; } +#ifndef CYBOZU_DONT_USE_STRING void setStr(const std::string& str, int ioMode = 0) { cybozu::StringInputStream is(str); @@ -153,6 +154,7 @@ struct Serializable : public E { getStr(str, ioMode); return str; } +#endif // return written bytes size_t serialize(void *buf, size_t maxBufSize, int ioMode = IoSerialize) const { |