mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-10-06 00:30:10 -06:00
Core: Fail__ for String::operator+(String, int)
git-svn-id: svn://ultimatepp.org/upp/trunk@7161 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
16ec3e1755
commit
afdbf717e2
2 changed files with 6 additions and 4 deletions
|
|
@ -146,10 +146,10 @@ public:
|
|||
friend String operator+(tchar a, const String& b) { String c(a, 1); c += b; return c; }
|
||||
|
||||
// Avoid common error of adding offset to String (NoCopy to produce compiler error)
|
||||
friend NoCopy operator+(int, const String&) {}
|
||||
friend NoCopy operator+(const String&, int) {}
|
||||
friend NoCopy operator+(size_t, const String&) {}
|
||||
friend NoCopy operator+(const String&, size_t) {}
|
||||
friend Fail__ operator+(int, const String&) { return Fail__(); }
|
||||
friend Fail__ operator+(const String&, int) { return Fail__();}
|
||||
friend Fail__ operator+(size_t, const String&) { return Fail__(); }
|
||||
friend Fail__ operator+(const String&, size_t) { return Fail__(); }
|
||||
};
|
||||
|
||||
class String0 : Moveable<String0> {
|
||||
|
|
|
|||
Loading…
Reference in a new issue