eolian-cxx: Add constructor with default argument

Fixes compilation error in clang. T5588
This commit is contained in:
Felipe Magno de Almeida 2017-06-18 20:01:55 -03:00
parent 800ac197f8
commit c40ecb6282
1 changed files with 7 additions and 1 deletions

View File

@ -171,10 +171,16 @@ get(klass_name const& klass)
struct regular_type_def
{
regular_type_def() : is_undefined(false) {}
regular_type_def(std::string base_type, qualifier_def qual, std::vector<std::string> namespaces
, bool is_undefined = false)
: base_type(std::move(base_type)), base_qualifier(qual), namespaces(std::move(namespaces))
, is_undefined(is_undefined) {}
std::string base_type;
qualifier_def base_qualifier;
std::vector<std::string> namespaces;
bool is_undefined = false;
bool is_undefined;
};
inline bool operator==(regular_type_def const& rhs, regular_type_def const& lhs)