mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Coalesce constructors using a default value.
This commit is contained in:
parent
a785d9488e
commit
08671a1d6d
@ -43,11 +43,15 @@ namespace Opm {
|
||||
namespace Polymer {
|
||||
class Hello {
|
||||
public:
|
||||
Hello() : designee_("world") {}
|
||||
Hello(const std::string& dsgn) : designee_(dsgn) {}
|
||||
Hello(const ::std::string& dsgn = ::std::string("world"))
|
||||
: designee_(dsgn)
|
||||
{}
|
||||
|
||||
template <class Ostream>
|
||||
friend Ostream& operator<< (Ostream& os, const Hello& h);
|
||||
friend
|
||||
Ostream&
|
||||
operator<< (Ostream& os, const Hello& h);
|
||||
|
||||
private:
|
||||
::std::string designee_;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user