Skip to content

Commit

Permalink
Added default constructor to the new sting types.
Browse files Browse the repository at this point in the history
Update #414
  • Loading branch information
eugenwintersberger committed Sep 8, 2019
1 parent df7a6ed commit c2709bb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/h5cpp/stl/string_types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ class FixedUTF8String : public std::string
{
public:
using std::string::string;
FixedUTF8String() : std::string() {}
FixedUTF8String(const std::string &string) : std::string(string) {}
FixedUTF8String(std::string &&string) : std::string(std::move(string)) {}
};
Expand All @@ -59,6 +60,7 @@ class VariableUTF8String : public std::string
{
public:
using std::string::string;
VariableUTF8String() : std::string() {}
VariableUTF8String(const std::string &string) : std::string(string) {}
VariableUTF8String(std::string &&string) : std::string(std::move(string)) {}
};
Expand All @@ -71,6 +73,7 @@ class VariableASCIIString : public std::string
{
public:
using std::string::string;
VariableASCIIString() : std::string() {}
VariableASCIIString(const std::string &string) : std::string(string) {}
VariableASCIIString(std::string &&string) : std::string(std::move(string)) {}
};
Expand Down

0 comments on commit c2709bb

Please sign in to comment.