Future proofing - #1589
Future proofing#1589
Conversation
As stir:Array template arguments might change in the future, it is now recommended to include ArrayFwd.h when using forward declaration.
cc5daea to
afffcb8
Compare
This caused problems for SWIG
|
How should I go about that? It should be able to avoid the conflicts, right? |
|
No. Anything in your branch will contaminate. Just have a look here if I missed anything obvious. We merge to master. You merge master on yours and just fix whatever. |
|
Python tests still failing with Seems that SWIG doesn't understand the way we use |
4302969 to
3422f21
Compare
|
I think it's ok, but: |
|
Of course, you can change the |
|
@NikEfth I thought it best to merge this now. Please merge onto your PR and adjust at will. |
prepare for possible changes in future to enable GPU array etc. This might mean
stir::Arraytemplate arguments change in the future, orDiscretisedDensityis derived from a different class. It is now recommended tostir/ArrayFwd.hwhen using forward declarationArrayTypetemplate-alias in places where a rectangular array that might live on a GPU is intended.