diff -r 4891d49809bb -r 2b3996fc09a1 core/com.nokia.carbide.cpp.compiler.doc.user/html/pragmas/p_opt_classresults.htm --- a/core/com.nokia.carbide.cpp.compiler.doc.user/html/pragmas/p_opt_classresults.htm Mon Jul 19 15:31:48 2010 -0500 +++ b/core/com.nokia.carbide.cpp.compiler.doc.user/html/pragmas/p_opt_classresults.htm Mon Jul 19 16:13:24 2010 -0500 @@ -1,39 +1,39 @@ - - -
- - - -Controls the omission of the copy constructor call for class return types if all return statements in a function return the same local class object.
-#pragma opt_classresults on | off | reset -
-Example of using #pragma opt_classresults:
-#pragma opt_classresults on
-struct X {
- X();
- X(const X&);
- // ...
- };
X f() {
- X x; // directly constructed in function result buffer
- // ...
- return x; // no copy-ctor call
- }
This pragma does not correspond to any panel setting. To check this setting, use __option (opt_classresults), described in Checking Settings. The default setting is on.
- - - - - + + + + + + +Controls the omission of the copy constructor call for class return types if all return statements in a function return the same local class object.
+#pragma opt_classresults on | off | reset +
+Example of using #pragma opt_classresults:
+#pragma opt_classresults on
+struct X {
+ X();
+ X(const X&);
+ // ...
+ };
X f() {
+ X x; // directly constructed in function result buffer
+ // ...
+ return x; // no copy-ctor call
+ }
This pragma does not correspond to any panel setting. To check this setting, use __option (opt_classresults), described in Checking Settings. The default setting is on.
+ + + + +