How do I write the move assignment function for this derived class?

前端 未结 1 1466
礼貌的吻别
礼貌的吻别 2021-01-07 19:52

Due to this bug in Visual Studio 2013, I need to provide my own move constructor and move assignment for a derived class. However, I don\'t know how to call the appropriate

1条回答
  •  臣服心动
    2021-01-07 20:42

    You just need to call the base class move assignment operator:

        vertex_shader& operator=(vertex_shader&& rhs)
        {
            shader::operator=(std::move(rhs));
            return *this;
        }
    

    0 讨论(0)
提交回复
热议问题