Re: Error Compiling on macOS

Denis Corbin <[email protected]> Sat, 27 Apr 2024 21:15:35 +0200
Newsgroups gmane.comp.sysutils.backup.dar.support
Message-ID <[email protected]>
On 25/04/2024 01:39, James Pedersen wrote:
> Hi Denis and Rolf,

Hi James,

> 
> Thank you for getting back to me about this as well as for suggesting 
> some solutions to this issue.
> 
> Denis, following your advice, I removed the "noexcept" statement from 
> the move assignment operator definition in a bunch of the .hpp files in 
> src/libdar/, and then the errors went away.
> 
> Rolf, I think that you have made a good observation here. In the 
> definition of the smart_pointer move assignment operator in 
> smart_pointer.hpp, it seems that it can throw exceptions because 
> /del_ref() /can throw exceptions. cat_nomme.hpp and cat_detruit.hpp are 
> subclasses of cat_entree.hpp, and hence it seems that they would both 
> inherit the smart_pointer variable pdesc of cat_entree.hpp. Since the 
> move assignment operator of smart_pointer can throw exception/s/, I 
> would like to suggest that maybe the right solution to this is to just 
> remove the "noexcept" keyword for any move assignment operator of a 
> subclass of cat_entree.hpp?

Yes, I agree with your analysis, smart_pointer/smart_node may throw 
exception thus the absence of noexcept keyword here is normal.

I will go that way. first I have to reproduce the problem (which I 
failed under Devuan using clang, will try other distro/clang version) to 
be sure the fix to be exhaustive.

> 
> Anyways, thank you both for helping me with this,
> James Pedersen
> 

Regards,
Denis
> 

> 
> 
> 
> 
>
OpenPGP_signature.asc (application/pgp-signature, 840 B)
-----BEGIN PGP SIGNATURE-----

wsF5BAABCAAjFiEEVeSEpqXFvH9T9/cuqLFBYNNrO6cFAmYtTtgFAwAAAAAACgkQqLFBYNNrO6c7
FxAAjvc+QYu/FKSzxQvBiFzZeiS14i1DYRyLY2hcY4rSWJfCesZS0l3GpbCaLBIXiCLRTD+uxVut
3b8w/ghC3TPIkkFIMxQinB0H0kb6w5ZNOmm59GBZybcxm7CfZjiSk53USzbDoildfyml6dbEHbMk
b2U8l5oezp6+oIfZVZrrVZMO+0VNUPHTySl+i4bKmQP2Ful320KtEx0dGFM3E3KKUwwFSyYtsVBK
6Oies1sGpWUXoi0VaycyNe6aFjwWLtlK3nwCTZT3Suz9GqXZ6z5bg/1+J6SsrcQjXCmazfo48pB+
lwIm10V3ZIG1OPpqpnPdIjgEBsSvElvl4qoKzxXYxN8dPVKyv9abR7lJWsbVBjbd8rm9CTmE0Po8
1mdrsg2/guYlKxrUqlX6XprR66UhdafrePMxoJxiD2aLbETu/sbskhehCPVsKypNvwfXg3uD9uPm
pslJUFhpBkXlQESJQ+6u5+2RKpHrMstG2Cc9XV8Dhq+2pM6FomKkQ5a9JH4Pv0DAsH6Q6sVi69O6
/78p6yzCR8r2iZPgiETa8vcYZaSuRZCaNZOa/NDvPHB0ZCusPwAe+Xf6aOjWbNbTqECSPZLa3IWP
WCWgxxcPpTtnHzkkUDjYj0NQV4TEzhBqPtbBsPGyW8/WM596fURg9QsnJNmeOQAv8iTBHG/oZcyJ
O8M=
=qwgW
-----END PGP SIGNATURE-----