Change bits_::m_bits to a vector
Although the order doesn't matter, making this into a vector makes sense
for the parser - Spirit parses stuff in some order, so a vector is
necessary.
Change-Id: I2ee75f02908911eb28d16c898401f0620afd4208
diff --git a/src/ast_values.hpp b/src/ast_values.hpp
index 228aac3..42608f7 100644
--- a/src/ast_values.hpp
+++ b/src/ast_values.hpp
@@ -9,7 +9,6 @@
#include <boost/optional.hpp>
#include <boost/variant.hpp>
-#include <set>
struct enum_ {
enum_();
@@ -36,7 +35,7 @@
struct bits_ {
bool operator==(const bits_&) const;
bool operator<(const bits_&) const;
- std::set<std::string> m_bits;
+ std::vector<std::string> m_bits;
};
struct module_ {
diff --git a/src/sysrepo_access.cpp b/src/sysrepo_access.cpp
index 6357a7a..6176f67 100644
--- a/src/sysrepo_access.cpp
+++ b/src/sysrepo_access.cpp
@@ -68,7 +68,7 @@
while (!ss.eof()) {
std::string bit;
ss >> bit;
- res.m_bits.insert(bit);
+ res.m_bits.push_back(bit);
}
return res;