in a source file that will end in a library I have a line like this:
Double_t* startPoint = _theGeoManager->GetCurrentPoint();
According to TGeo documentation and TGeoManager source code too, that
line should work.
Nevertheless I get an error while compiling:
SbtSimpleGenAlg.cc:46: error: invalid conversion from ‘const Double_t*’ to ‘Double_t*’[/quote]
They only way to get this working is of course:
const Double_t* startPoint = _theGeoManager->GetCurrentPoint();
Is there any reason for this?
Many thanks in advance,