mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
.docs
git-svn-id: svn://ultimatepp.org/upp/trunk@7862 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
08cf67476f
commit
bd27fbff27
1 changed files with 4 additions and 4 deletions
|
|
@ -39,13 +39,13 @@ state&]
|
|||
[s3; C`+`+03 compatibility&]
|
||||
[s5; In ideal world, we would be now using only C`+`+11. In real
|
||||
world, we will need to support C`+`+03 for forseeable future.&]
|
||||
[s5; pick constructor/operator`=`= in C`+`+11 can obviously use&]
|
||||
[s5; pick constructor/operator`= in C`+`+11 can obviously use&]
|
||||
[s7; T(T`&`&);&]
|
||||
[s7; T`& operator(T`&`&);&]
|
||||
[s7; T`& operator`=(T`&`&);&]
|
||||
[s5; forms. However, to support C`+`+03, we need to implement them
|
||||
using quite ugly trick as&]
|
||||
[s7; T(T const`&);&]
|
||||
[s7; T`& operator(T const`&);&]
|
||||
[s7; T`& operator`=(T const`&);&]
|
||||
[s5; because not doing so would break returning values from functions,
|
||||
as temporaries in C`+`+11 can only be bind to constant references.
|
||||
To hide this difference, we&]
|
||||
|
|
@ -54,7 +54,7 @@ To hide this difference, we&]
|
|||
[s7; #define rval`_ const`&&]
|
||||
[s5; in C`+`+03 to get unified the form&]
|
||||
[s7; T(T rval`_);&]
|
||||
[s7; T`& operator(T rval`_);&]
|
||||
[s7; T`& operator`=(T rval`_);&]
|
||||
[s5; (parameter then also has to be const`_casted, but that is not
|
||||
a problem in C`+`+11). Note also that semantics of `'pick`',
|
||||
for this reason, is not tested very well in C`+`+03.&]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue