libftdi Archives

Subject: Re: [PATCH] C++ wrapper: get rid of the Boost dependency

From: Thomas Jarosch <thomas.jarosch@xxxxxxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Cc: Aurelien Jarno <aurelien@xxxxxxxxxxx>
Date: Tue, 10 Jun 2025 17:13:00 +0200
Hi Aurelien,

You wrote on Tue, May 13, 2025 at 11:40:40PM +0200:
> The C++ wrapper relies on boost::shared_ptr, likely due to the lack of a
> standard smart pointer at the time of the C++ wrapper implementation.
> However, std::shared_ptr has been available by default in GCC since
> version 6.1, and even with GCC 4.7 when explicitely using the -std=c++11
> option.
> 
> This commit replaces all usages of boost::shared_ptr with
> std::shared_ptr, eliminating the dependency on the Boost library. Since
> the smart pointer is only used in private member variables and both
> types have the same size, this change does not affect the ABI.

applied, thanks!

Your anaylsis is correct regarding why boost::shared_ptr was used back then.

Thanks for pointing out that the ABI is not affected.

Cheers,
Thomas

--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   

Current Thread