- "Bjarne Stroustrup announces C++ Core Guidelines" - 1 Update
- Lambdas and template parameter deduction - 1 Update
"Öö Tiib" <ootiib@hot.ee>: Oct 18 01:13PM -0700 On Thursday, 15 October 2015 14:27:12 UTC+3, SG wrote: > *deprecated*. So, in C++11 mode (or higher) a compiler *should* > actually warn about the use of such a deprecated rule that makes the > compiler generate a copy operation that probably does the wrong thing. I like the way how you think but real compilers don't do what you say these *should*. So the subtle issue is still very real. > ^ > This makes the compiler generate a copy ctor according to > a deprecated rule. I would also love warning, but it is tricky to make good suggestion how to achieve that it does not look rather confusing. For example when the above 'indirect_int' is used as member in a class made by rule of zero and then object of that class is copied. > Unforunately, last time I checked, no compiler would actually issue a > warning in such a case in C++11 mode. :-( Things could be so much > simpler for beginners... Yes. Neither in C++11 nor in C++14 mode. The vendors of compilers interpret that deprecation somehow differently and so we have to keep enforcing safe usage with our coding standards. |
namekuseijin@gmail.com: Oct 17 10:39PM -0700 LOL all the convenience of manually-captured closures with the generalized benefits of templates with no type inference and schizophrenic type signatures... |
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page. To unsubscribe from this group and stop receiving emails from it send an email to comp.lang.c+++unsubscribe@googlegroups.com. |
No comments:
Post a Comment