From 0f0f32320b5569c472e75b5827adf31813ebfe12 Mon Sep 17 00:00:00 2001 From: Chip Hogg Date: Sat, 9 Mar 2024 15:54:06 -0500 Subject: [PATCH] Delete `ForbidsComposingWith` mixin It causes problems with Apple Clang version 9, apparently. I think this compiler technically falls outside of our support window. However, an actual user is having issues with it, and I think `ForbidsComposingWith` is adding only very marginal value anyway. I tried deleting it and the error messages became a couple of lines shorter, although perhaps less direct (no more reference to "explicitly deleted"). Amusingly, I'm keeping the unit test for it around, because it's one of those unfortunate "uncomment to test" deals, and the tests _will_ still pass. (We'll get compiler errors for doing unsupported operations.) --- au/constant.hh | 2 -- au/wrapper_operations.hh | 25 ------------------------- au/wrapper_operations_test.cc | 2 -- 3 files changed, 29 deletions(-) diff --git a/au/constant.hh b/au/constant.hh index 7d4d5325..4f4b03ac 100644 --- a/au/constant.hh +++ b/au/constant.hh @@ -40,8 +40,6 @@ struct Constant : detail::MakesQuantityFromNumber, detail::ComposesWith, detail::ComposesWith, detail::ComposesWith, - detail::ForbidsComposingWith, - detail::ForbidsComposingWith, detail::CanScaleByMagnitude { // Convert this constant to a Quantity of the given rep. template diff --git a/au/wrapper_operations.hh b/au/wrapper_operations.hh index b6b2c472..62bd25f6 100644 --- a/au/wrapper_operations.hh +++ b/au/wrapper_operations.hh @@ -217,30 +217,5 @@ struct CanScaleByMagnitude { } }; -// -// A mixin to explicitly delete operations that we want to forbid. -// -template