Run Code  | API  | Code Wall  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

C++ Fail to move an object from the beginning of a vector.

Language: Layout:
+ ] Compiler args + ] Show input
Compilation time: 0.63 sec, absolute service time: 0,79 sec 
fork mode |  history
Error(s):
source_file.cpp:20:10: error: call to implicitly-deleted copy constructor of 'test_s'
  test_s ss = std::move(v.front());
         ^    ~~~~~~~~~~~~~~~~~~~~
source_file.cpp:9:13: note: copy constructor is implicitly deleted because 'test_s' has a user-declared move assignment operator
    test_s& operator=(test_s &&ts) {
            ^
1 error generated.

        

    
                
λ
.NET NoSQL database for rapid development