ideal: does const ourGetPtr really need to be private?
To be able to call this
const SparsePolyRingBase::IdealImpl* const ptrI = SparsePolyRingBase::IdealImpl::ourGetPtr(I);
many functions need to be //friend//.
Can we make this public?
Or is it too dangerous?
#1 Updated by John Abbott about 1 month ago
- Status changed from New to In Progress
- % Done changed from 0 to 10
If many functions have to be
friend that is not a good sign.
I'm too busy to think about it now, so suggest making it public with a comment that this is makeshift solution that has to be properly considered at some point in the future.
#2 Updated by Anna Maria Bigatti about 1 month ago
- % Done changed from 10 to 40
- Estimated time set to 8.00 h
After discussing with John, I made it public.
Indeed the rest of the code is clenear, i.e. we do not need so many friend functions, so the new files
SparsePolyOps-ideal/involutive.H make take the heavy content of
On the bad side, this exposes an implementation detail (the pointer) and this, says John, shows that the design is not quite correct.