mirror of
				https://github.com/gnss-sdr/gnss-sdr
				synced 2025-10-30 23:03:05 +00:00 
			
		
		
		
	Add compatibility with the new GNU Radio 3.9 API that uses C++11 standard smart pointers instead of Boost smart pointers
This commit is contained in:
		| @@ -96,7 +96,11 @@ std::vector<Gnss_Synchro> gnss_sync_vector; | ||||
| // ######## GNURADIO BLOCK MESSAGE RECEVER ######### | ||||
| class FrontEndCal_msg_rx; | ||||
|  | ||||
| #if GNURADIO_USES_STD_POINTERS | ||||
| using FrontEndCal_msg_rx_sptr = std::shared_ptr<FrontEndCal_msg_rx>; | ||||
| #else | ||||
| using FrontEndCal_msg_rx_sptr = boost::shared_ptr<FrontEndCal_msg_rx>; | ||||
| #endif | ||||
|  | ||||
| FrontEndCal_msg_rx_sptr FrontEndCal_msg_rx_make(); | ||||
|  | ||||
| @@ -362,7 +366,11 @@ int main(int argc, char** argv) | ||||
|  | ||||
|     gr::block_sptr source; | ||||
|     source = gr::blocks::file_source::make(sizeof(gr_complex), "tmp_capture.dat"); | ||||
| #if GNURADIO_USES_STD_POINTERS | ||||
|     std::shared_ptr<FrontEndCal_msg_rx> msg_rx; | ||||
| #else | ||||
|     boost::shared_ptr<FrontEndCal_msg_rx> msg_rx; | ||||
| #endif | ||||
|     try | ||||
|         { | ||||
|             msg_rx = FrontEndCal_msg_rx_make(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Carles Fernandez
					Carles Fernandez