mirror of
				https://github.com/gnss-sdr/gnss-sdr
				synced 2025-10-31 07:13:03 +00:00 
			
		
		
		
	Add missing move assignment operator
This commit is contained in:
		| @@ -242,5 +242,38 @@ Acquisition_Dump_Reader::Acquisition_Dump_Reader(const std::string& basename, | ||||
|         } | ||||
| } | ||||
|  | ||||
| // Copy constructor | ||||
| Acquisition_Dump_Reader::Acquisition_Dump_Reader(Acquisition_Dump_Reader&& other) noexcept | ||||
| { | ||||
|     *this = other; | ||||
| } | ||||
|  | ||||
| Acquisition_Dump_Reader::~Acquisition_Dump_Reader() = default; | ||||
|  | ||||
| // Copy assignment operator | ||||
| Acquisition_Dump_Reader& Acquisition_Dump_Reader::operator=(const Acquisition_Dump_Reader& rhs) | ||||
| { | ||||
|     // Only do assignment if RHS is a different object from this. | ||||
|     if (this != &rhs) | ||||
|         { | ||||
|             *this = rhs; | ||||
|         } | ||||
|     return *this; | ||||
| } | ||||
|  | ||||
|  | ||||
| // Move constructor | ||||
| Acquisition_Dump_Reader::Acquisition_Dump_Reader(const Acquisition_Dump_Reader& other) noexcept | ||||
| { | ||||
|     *this = other; | ||||
| } | ||||
|  | ||||
|  | ||||
| // Move assignment operator | ||||
| Acquisition_Dump_Reader& Acquisition_Dump_Reader::operator=(Acquisition_Dump_Reader&& other) noexcept | ||||
| { | ||||
|     if (this != &other) | ||||
|         { | ||||
|             *this = other; | ||||
|         } | ||||
|     return *this; | ||||
| } | ||||
|   | ||||
| @@ -51,7 +51,12 @@ public: | ||||
|         int channel = 0, | ||||
|         int execution = 1); | ||||
|  | ||||
|     ~Acquisition_Dump_Reader(); | ||||
|     ~Acquisition_Dump_Reader() = default; | ||||
|  | ||||
|     Acquisition_Dump_Reader(Acquisition_Dump_Reader&& other) noexcept;             //!< Copy constructor | ||||
|     Acquisition_Dump_Reader& operator=(const Acquisition_Dump_Reader&);            //!< Copy assignment operator | ||||
|     Acquisition_Dump_Reader(const Acquisition_Dump_Reader& other) noexcept;        //!< Move constructor | ||||
|     Acquisition_Dump_Reader& operator=(Acquisition_Dump_Reader&& other) noexcept;  //!< Move assignment operator | ||||
|  | ||||
|     bool read_binary_acq(); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Carles Fernandez
					Carles Fernandez