Skip to content

Commit 424edfa

Browse files
committed
Make Push/Pop templates public
1 parent 03f0ccf commit 424edfa

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

libs/common/include/s25util/Serializer.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,20 +108,19 @@ class Serializer
108108
std::string PopString();
109109
std::string PopLongString();
110110

111-
protected:
112111
template<typename T>
113112
T Pop();
114113

115114
template<typename T>
116115
void Push(T val);
117116

117+
private:
118118
/// Erweitert ggf. Speicher um add_length
119119
void ExtendMemory(unsigned add_length) { EnsureSize(length_ + add_length); }
120120

121121
/// Makes sure the internal buffer is at least length bytes long
122122
void EnsureSize(unsigned length);
123123

124-
private:
125124
/// data mit den Daten
126125
boost::container::vector<uint8_t> data_;
127126
/// Logische Länge

0 commit comments

Comments
 (0)