-
Notifications
You must be signed in to change notification settings - Fork 346
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clang compile error for file XLStyles.hpp #310
Comments
Thanks for flagging this. I'll implement some explicit copy constructor & assignment operators. That should clear the error. Maybe I'll get to it tomorrow. |
As per 02f7d42#diff-6df3199d905212627966d86c63ed0230a5f5e6d5643421752d3fc8f5a35a1099R2116 and following, I hope for this issue to no longer occur - @MoniqueRFC could you verify from the development-aral branch whether this is resolved now? |
Thanks for taking care of it. I am getting two new errors though, while the original ones disappeared: [build] In file included from PATH/openxlsx/47bc049774588e82186b6578589f1d5d22f404ba/OpenXLSX\OpenXLSX.hpp:49: |
Thanks for checking! I am not very good with move and copy constructors yet, I basically started using them regularly when I started contributing here. I will fix those missing constructors and comment here when I upload a patch. |
Gosh I hate how useless |
Okay, have a look at 7a72687 please - I made the offending |
Thank you very much for fixing this so fast despite all the obstacles, there are no more compile errors!! :) |
Thank you for helping to improve the library! I'll close your related pull request now with reference to this issue. :) I will merge the patches from the development branch over to the main branch in a few days. |
@MoniqueRFC - would you be willing to test the newest patch to the development branch with CLang? Since I changed some lower level templated stuff, I would appreciate knowing whether there's anything the compiler will complain about, that I need to fix before merging into the master branch. |
bump - @MoniqueRFC - would you have a look at the latest version / compatibility with your CLang setup? |
Sorry, @aral-matrix, I will check it today. |
Thank you very much for testing! No need to apologize :) I will merge the latest branch into master later today then & close all issue that have been fixed / addressed. |
No problem, thanks again for the fix :) |
Patch has been merged into master. |
When trying to build a project that includes the OpenXLSX library I get below errors which causes ninja to fail:
[build] PATH/cpm-cache/openxlsx/d5fef227e58012c750c8837487d06d304d486720/OpenXLSX\headers\XLStyles.hpp:2126:9: error: explicitly defaulted copy constructor is implicitly deleted [-Werror,-Wdefaulted-function-deleted]
[build] 2126 | XLStyles(const XLStyles& other) = default;
[build] | ^
[build] PATH/cpm-cache/openxlsx/d5fef227e58012c750c8837487d06d304d486720/OpenXLSX\headers\XLStyles.hpp:2193:45: note: copy constructor of 'XLStyles' is implicitly deleted because field 'm_numberFormats' has a deleted copy constructor
[build] 2193 | std::unique_ptr m_numberFormats; // handle to the underlying number formats
[build] | ^
[build] C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.42.34433\include\memory:3451:5: note: 'unique_ptr' has been explicitly marked deleted here
[build] 3451 | unique_ptr(const unique_ptr&) = delete;
[build] | ^
[build] PATH/cpm-cache/openxlsx/d5fef227e58012c750c8837487d06d304d486720/OpenXLSX\headers\XLStyles.hpp:2126:43: note: replace 'default' with 'delete'
[build] 2126 | XLStyles(const XLStyles& other) = default;
[build] | ^~~~~~~
[build] | delete
[build] PATH/cpm-cache/openxlsx/d5fef227e58012c750c8837487d06d304d486720/OpenXLSX\headers\XLStyles.hpp:2139:19: error: explicitly defaulted copy assignment operator is implicitly deleted [-Werror,-Wdefaulted-function-deleted]
[build] 2139 | XLStyles& operator=(const XLStyles& other) = default;
[build] | ^
[build] PATH/cpm-cache/openxlsx/d5fef227e58012c750c8837487d06d304d486720/OpenXLSX\headers\XLStyles.hpp:2193:45: note: copy assignment operator of 'XLStyles' is implicitly deleted because field 'm_numberFormats' has a deleted copy assignment operator
[build] 2193 | std::unique_ptr m_numberFormats; // handle to the underlying number formats
[build] | ^
[build] C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.42.34433\include\memory:3452:17: note: 'operator=' has been explicitly marked deleted here
[build] 3452 | unique_ptr& operator=(const unique_ptr&) = delete;
[build] | ^
[build] PATH/cpm-cache/openxlsx/d5fef227e58012c750c8837487d06d304d486720/OpenXLSX\headers\XLStyles.hpp:2139:54: note: replace 'default' with 'delete'
[build] 2139 | XLStyles& operator=(const XLStyles& other) = default;
[build] | ^~~~~~~
[build] | delete
[build] 2 errors generated.
The text was updated successfully, but these errors were encountered: