奇数C成员函数声明语法:\u0026\u0026限定符
作者:互联网
从Boost::Thread开始:
template <typename R>
class shared_future
{
...
// move support
shared_future(shared_future && other);
shared_future(unique_future<R> && other);
shared_future& operator=(shared_future && other);
shared_future& operator=(unique_future<R> && other);
...
}
究竟是那些双括号?我去了“BS The C Langauge 3d edition”并找不到任何解释.
解决方法:
这是rvalue引用的C 0x加法.
见http://www.artima.com/cppsource/rvalue.html.
标签:boost-thread,c 来源: https://codeday.me/bug/20190827/1741529.html