Test-suite fixes for c++11 compilation by g++-5.1
This commit is contained in:
parent
d325eeee84
commit
1514e19efb
3 changed files with 4 additions and 8 deletions
|
|
@ -32,6 +32,7 @@ struct Thingy {
|
|||
void compactDefaultArgs(const bool &&b = (const bool &&)PublicGlobalTrue, const UserDef &&u = (const UserDef &&)PublicUserDef) {}
|
||||
void privateDefaultArgs(const bool &&b = (const bool &&)PrivateTrue) {}
|
||||
operator int &&() {}
|
||||
Thingy(const Thingy& rhs) : val(rhs.val), lvalref(rhs.lvalref), rvalref(copy_int(rhs.rvalref)) {}
|
||||
Thingy& operator=(const Thingy& rhs) {
|
||||
val = rhs.val;
|
||||
lvalref = rhs.lvalref;
|
||||
|
|
@ -39,6 +40,7 @@ struct Thingy {
|
|||
}
|
||||
private:
|
||||
static const bool PrivateTrue;
|
||||
int copy_int(int& i) { return i; }
|
||||
Thingy();
|
||||
};
|
||||
const bool Thingy::PrivateTrue = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue