Commit 7db9f609 authored by Bryan Berthou's avatar Bryan Berthou
Browse files

refs#16

In ElementaryUtils (trunk) :
- Correct problem with update() method in GenericType class.
parent 6903975d
......@@ -9,6 +9,7 @@ namespace ElemUtils {
GenericType::GenericType(const GenericType &other) {
// clear current stream then copy it from other object
m_stream.clear();
m_stream.str(StringUtils::EMPTY);
m_stream << other.m_stream.str();
}
......@@ -125,6 +126,7 @@ size_t GenericType::toSize_t() const {
GenericType& ElemUtils::GenericType::operator =(const GenericType& rhs) {
// clear current stream then copy it from other object
m_stream.clear();
m_stream.str(StringUtils::EMPTY);
m_stream << rhs.m_stream.str();
return *this;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment