Git Product home page Git Product logo

Comments (10)

casperdcl avatar casperdcl commented on June 15, 2024

Are we intending to replace it in all the other files where it's mentioned?

./documentation/STIR-developers-overview.tex
./documentation/release_2001_01_12.htm
./src/recon_buildblock/BackProjectorByBinUsingProjMatrixByBin.cxx
./src/recon_buildblock/BackProjectorByBinUsingInterpolation.cxx
./src/recon_buildblock/DataSymmetriesForBins.cxx
./src/recon_buildblock/ForwardProjectorByBinUsingProjMatrixByBin.cxx
./src/recon_buildblock/TrivialDataSymmetriesForBins.cxx
./src/recon_buildblock/ProjMatrixElemsForOneBin.cxx
./src/recon_buildblock/ProjMatrixElemsForOneDensel.cxx
./src/recon_buildblock/DataSymmetriesForDensels.cxx
./src/swig/stir.i
./src/recon_test/test_PoissonLogLikelihoodWithLinearModelForMeanAndProjData.cxx
./src/test/test_OutputFileFormat.cxx
./src/include/stir/ProjDataInMemory.h
./src/include/stir/doxygen_doc_for_boost.h
./src/include/stir/recon_buildblock/DataSymmetriesForBins.h
./src/include/stir/recon_buildblock/DataSymmetriesForBins_PET_CartesianGrid.inl
./src/include/stir/recon_buildblock/DataSymmetriesForBins_PET_CartesianGrid.h
./src/include/stir/recon_buildblock/ProjMatrixByBin.inl
./src/include/stir/recon_buildblock/DataSymmetriesForDensels.h
./src/include/stir/recon_buildblock/TrivialDataSymmetriesForBins.h
./src/include/stir/common.h
./src/include/stir/IO/ECAT962ListmodeInputFileFormat.h
./src/include/stir/IO/ECAT8_32bitListmodeInputFileFormat.h
./src/include/stir/IO/ECAT6ImageInputFileFormat.h
./src/include/stir/IO/ECAT7DynamicDiscretisedDensityInputFileFormat.h
./src/include/stir/IO/ITKImageInputFileFormat.h
./src/include/stir/IO/ECAT7ImageInputFileFormat.h
./src/include/stir/IO/InterfileImageInputFileFormat.h
./src/include/stir/IO/InputFileFormat.h
./src/include/stir/IO/ECAT966ListmodeInputFileFormat.h
./src/include/stir/IO/ROOTListmodeInputFileFormat.h
./src/include/stir/IO/read_from_file.h
./src/include/stir/is_null_ptr.h
./src/include/local/stir/recon_buildblock/DataSymmetriesForDensels_PET_CartesianGrid.inl
./src/include/local/stir/recon_buildblock/ProjMatrixByDensel.inl
./src/include/local/stir/recon_buildblock/DataSymmetriesForDensels_PET_CartesianGrid.h
./src/utilities/list_image_info.cxx
./src/utilities/stir_math.cxx
./src/iterative/OSMAPOSL/OSMAPOSLReconstruction.cxx
./src/iterative/OSSPS/OSSPSReconstruction.cxx
./src/IO/stir_ecat7.cxx
./src/IO/ECAT7DynamicDiscretisedDensityInputFileFormat.cxx
./src/IO/ITKImageInputFileFormat.cxx
./src/buildblock/ChainedDataProcessor.cxx

I haven't really looked into the code but unique_ptr sounds good to me. If files support multi-read and are not writable we may want a shared_ptr instead.

from stir.

KrisThielemans avatar KrisThielemans commented on June 15, 2024

sure. we'd replace all of them. many occurences are just "local" (to make an pointer-object destruct). Replacing those is harmless of course. It's the ones in the class interface that will break backwards compatibility.

from stir.

KrisThielemans avatar KrisThielemans commented on June 15, 2024

I've made now 2 attempts to get this to work (see 9dbc5fe) but still fail on OSX.
The issue is that OSX supplies a broken unique_ptr (even with C++-11!). See http://stackoverflow.com/questions/31655462/no-type-named-unique-ptr-in-namespace-std-when-compiling-under-llvm-clang.
I'm trying to replace it with a boost solution, see
https://github.com/UCL/STIR/blob/9dbc5fed3039d42731478ffdb6cb2357b0b70a86/src/include/stir/unique_ptr.h

This should have worked on Travis as its boost version is 1.61 while I require 1.57. However, it looks like it is still using the "desperate" fall-back of using a define (which I knew would fail). Can someone with a Mac investigate what's wrong with my preprocessor-ifs?

from stir.

KrisThielemans avatar KrisThielemans commented on June 15, 2024

Anyone knows how to pass a flag to a specific compiler in Travis? We need to pass -stdlib=libc++ to clang on Apple for C++-11 (http://stackoverflow.com/questions/11853822/clang-3-1-cant-see-unique-ptr) but it won't work for Linux/gcc (presumably), and we don't want that flag when testing non-C++-11. @dvolgyes?

from stir.

dvolgyes avatar dvolgyes commented on June 15, 2024

from stir.

dvolgyes avatar dvolgyes commented on June 15, 2024

from stir.

dvolgyes avatar dvolgyes commented on June 15, 2024

from stir.

KrisThielemans avatar KrisThielemans commented on June 15, 2024

Thanks David. I think the option to detect OSX in Cmake is best, unless anyone knows if this would create trouble on OSX in certain situations?

By the way, I don't understand why Evgueni's last update occurs in your PR #64. I was already surprised I had to do an explicit merge of the CMakeExport branch on my side (should have been a fast-forward as far as I could tell). Did I create some trouble in git?

from stir.

casperdcl avatar casperdcl commented on June 15, 2024

from stir.

casperdcl avatar casperdcl commented on June 15, 2024

from stir.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.