Fix compilation with gcc 4.6

This commit is contained in:
Guillaume Munch 2016-06-14 16:42:52 +01:00
parent 947c34364c
commit b148629d56
2 changed files with 9 additions and 2 deletions

View File

@ -66,6 +66,13 @@ IconvProcessor::IconvProcessor(string tocode, string fromcode)
{}
// for gcc 4.6
IconvProcessor::IconvProcessor(IconvProcessor && other)
: tocode_(move(other.tocode_)), fromcode_(move(other.fromcode_)),
h_(move(other.h_))
{}
bool IconvProcessor::init()
{
if (h_)

View File

@ -62,8 +62,8 @@ public:
char * out_buffer, size_t max_out_size);
/// target encoding
std::string to() const { return tocode_; }
// required by g++ 4.7
IconvProcessor(IconvProcessor &&) = default;
// required by g++ 4.6
IconvProcessor(IconvProcessor && other);
};
/// Get the global IconvProcessor instance of the current thread for