Lines 125-131
TagString_t<T>& TagString_t<T>::operator+=(const TagString_t & s)
Link Here
|
125 |
str += s.str; |
125 |
str += s.str; |
126 |
const unsigned disp = length(); |
126 |
const unsigned disp = length(); |
127 |
for (typename taglist::const_iterator it = s.tags.begin(), end = s.tags.end();it != end;++it) { |
127 |
for (typename taglist::const_iterator it = s.tags.begin(), end = s.tags.end();it != end;++it) { |
128 |
tags.push_back(make_pair((*it).first + disp, (*it).second)); |
128 |
tags.push_back(std::make_pair((*it).first + disp, (*it).second)); |
129 |
} |
129 |
} |
130 |
return *this; |
130 |
return *this; |
131 |
} |
131 |
} |
Lines 134-140
template <class T>
Link Here
|
134 |
void TagString_t<T>::insertTag(uint pos, const T& t) |
134 |
void TagString_t<T>::insertTag(uint pos, const T& t) |
135 |
{ |
135 |
{ |
136 |
assert(pos <= length()); |
136 |
assert(pos <= length()); |
137 |
tags.push_back(make_pair(pos, t)); |
137 |
tags.push_back(std::make_pair(pos, t)); |
138 |
} |
138 |
} |
139 |
|
139 |
|
140 |
#endif |
140 |
#endif |