mirror of https://github.com/djcb/mu.git
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:
parent
29b289d3c6
commit
a4d6302dab
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue