teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

3

正確にn4659から文章を引用した

2019/01/13 00:13

投稿

alphya
alphya

スコア124

title CHANGED
File without changes
body CHANGED
@@ -4,6 +4,6 @@
4
4
 
5
5
  また、n4659 [class.copy.elision]も関係しそうだと思います。[class.copy.elision]/1.1 に、次の記述があります。
6
6
 
7
- > in a return statement in a function with a class return type, when the expression is the name of a non-volatile automatic object (other than a function parameter or a variable introduced by the exception-declaration of a handler ([except.handle])) with the same type (ignoring cv-qualification) as the function return type, the copy/move operation can be omitted by constructing the automatic object directly into the function call's return object
7
+ > in a return statement in a function with a class return type, when the expression is the name of a non-volatile automatic object (other than a function parameter or a variable introduced by the exception-declaration of a handler (18.3)) with the same type (ignoring cv-qualification) as the function return type, the copy/move operation can be omitted by constructing the automatic object directly into the function calls return object
8
8
 
9
9
  (NRVOはどのように、保証されないのでしょうか)

2

リンクの改善

2019/01/13 00:13

投稿

alphya
alphya

スコア124

title CHANGED
File without changes
body CHANGED
@@ -1,4 +1,4 @@
1
- C++17で追加された機能、[値のコピー省略を保証](https://cpprefjp.github.io/lang/cpp17/guaranteed_copy_elision.html)について、規格のどこにこの記述があるのかわかる方がいましたら、ご教授お願いいたします。
1
+ C++17で追加された機能、[値のコピー省略を保証](https://ja.cppreference.com/w/cpp/language/copy_elision)について、規格のどこにこの記述があるのかわかる方がいましたら、ご教授お願いいたします。
2
2
 
3
3
  コンパイラの実装状況などでは、この機能についての参照に[p0135r1](http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0135r1.html)が挙げられています。
4
4
 

1

書式の改善

2019/01/13 00:06

投稿

alphya
alphya

スコア124

title CHANGED
File without changes
body CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  コンパイラの実装状況などでは、この機能についての参照に[p0135r1](http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0135r1.html)が挙げられています。
4
4
 
5
- また、n4659 [class.copy.elision]も関係しそうだと思います。[class.copy.elision]/1.1 の
5
+ また、n4659 [class.copy.elision]も関係しそうだと思います。[class.copy.elision]/1.1 に、次記述があります。
6
6
 
7
7
  > in a return statement in a function with a class return type, when the expression is the name of a non-volatile automatic object (other than a function parameter or a variable introduced by the exception-declaration of a handler ([except.handle])) with the same type (ignoring cv-qualification) as the function return type, the copy/move operation can be omitted by constructing the automatic object directly into the function call's return object
8
8