“No matching function for call error” with g++

前端 未结 4 1402
悲&欢浪女
悲&欢浪女 2021-01-28 03:47

I have a class A

template
class A : public std::auto_ptr
{
    typedef std::auto_ptr Super;
public:
    A() : Super() { }
            


        
4条回答
  •  北荒
    北荒 (楼主)
    2021-01-28 04:27

    I'd guess you're lacking A(A const & o).

    VS (incorrectly) permits getting a non-const reference to a temporary, g++ behaves properly

提交回复
热议问题