Re: Error Compiling on macOS
James Pedersen <[email protected]> Wed, 24 Apr 2024 16:39:05 -0700
| Newsgroups | gmane.comp.sysutils.backup.dar.support |
|---|---|
| Message-ID | <CADHtKCff=gZt29p6PaDxguJDTY7EUWVHTpf1X8sEboaEDCXoEw@mail.gmail.com> |
Hi Denis and Rolf, 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? Anyways, thank you both for helping me with this, James Pedersen