mu-sexp: use std::vector instead of std::deque

Using deque gives compilation errors when compiling on
MacOS/clang (where it defaults to libc++ rather than gcc's libstdc++)

```
 #include <deque>
 struct Foo { std::deque<Foo> foos; };
 int  main() { Foo foo; }
```

So, let's use a vector instead; this is a drop-in replacement here, but
unfortunately in some future code...
This commit is contained in:
Dirk-Jan C. Binnema 2020-08-15 10:36:10 +03:00
parent 29b289d3c6
commit a4d6302dab
1 changed files with 3 additions and 3 deletions

View File

@ -24,7 +24,6 @@
#include <iterator>
#include <string>
#include <vector>
#include <deque>
#include <type_traits>
#include "utils/mu-utils.hh"
@ -49,8 +48,9 @@ struct Sexp {
*/
Sexp():type_{Type::Empty}{}
/// Underlying data type for list
using Seq = std::deque<Sexp>;
// Underlying data type for list; we'd like to use std::dequeu here,
// but that does not compile with libc++ (it does with libstdc++)
using Seq = std::vector<Sexp>;
/**
* Make a sexp out of an s-expression string.