Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The design of C++11 started way before 2011, hence articles from 2008.

  get_pointer() = 1;
assigning 1 to a pointer isn't the best idea :P so I think you mean you read

  int& get_reference();
  get_reference() = 1;
which is about lvalue references, not rvalue references, and has existed in C++ since the beginning.


Thanks for the explanation.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: