Skip to content
Snippets Groups Projects
  • Verena Reimund's avatar
    bc6eedb6
    Attempt to fix build failures · bc6eedb6
    Verena Reimund authored
    Refs #22383
    
    OSX
    FAILED: Framework/SINQ/test/CMakeFiles/PSISINQTest.dir/PoldiIndexKnownCompoundsTest.cpp.o
    In file included from Framework/SINQ/test/PoldiIndexKnownCompoundsTest.cpp:17:
    PoldiIndexKnownCompoundsTest.h:40:5: error: no matching function for call to 'storeWS'
        WorkspaceCreationHelper::storeWS(
    WorkspaceCreationHelper.h:114:33: note: candidate function [with WSType = boost::shared_ptr<Mantid::DataObjects::TableWorkspace>] not viable: expects an l-value for 2nd argument
    template <typename WSType> void storeWS(const std::string &name, WSType &ws) {
    In file included from Framework/SINQ/test/PoldiIndexKnownCompoundsTest.cpp:17:
    PoldiIndexKnownCompoundsTest.h:43:5: error: no matching function for call to 'storeWS'
        WorkspaceCreationHelper::storeWS(
    WorkspaceCreationHelper.h:114:33: note: candidate function [with WSType = boost::shared_ptr<Mantid::DataObjects::TableWorkspace>] not viable: expects an l-value for 2nd argument
    template <typename WSType> void storeWS(const std::string &name, WSType &ws) {
    In file included from Framework/SINQ/test/PoldiIndexKnownCompoundsTest.cpp:17:
    PoldiIndexKnownCompoundsTest.h:673:7: error: no matching function for call to 'storeWS'
          WorkspaceCreationHelper::storeWS(
    WorkspaceCreationHelper.h:114:33: note: candidate function [with WSType = boost::shared_ptr<Mantid::DataObjects::Workspace2D>] not viable: expects an l-value for 2nd argument
    template <typename WSType> void storeWS(const std::string &name, WSType &ws) {
    3 errors generated.
    
    Linux
    PoldiIndexKnownCompoundsTest.h:42:66: error: invalid initialization of non-const reference of type ‘boost::shared_ptr<Mantid::DataObjects::TableWorkspace>&’ from an rvalue of type ‘Mantid::DataObjects::TableWorkspace_sptr {aka boost::shared_ptr<Mantid::DataObjects::TableWorkspace>}’
              PoldiPeakCollectionHelpers::createPoldiPeakTableWorkspace());
    PoldiIndexKnownCompoundsTest.cpp:17:
    WorkspaceCreationHelper.h:114:33: note:   initializing argument 2 of ‘void WorkspaceCreationHelper::storeWS(const string&, WSType&) [with WSType = boost::shared_ptr<Mantid::DataObjects::TableWorkspace>; std::__cxx11::string = std::__cxx11::basic_string<char>]’
    10:35:30  template <typename WSType> void storeWS(const std::string &name, WSType &ws) {
    PoldiIndexKnownCompoundsTest.cpp:17:0:
    PoldiIndexKnownCompoundsTest.h:46:31: error: invalid initialization of non-const reference of type ‘boost::shared_ptr<Mantid::DataObjects::TableWorkspace>&’ from an rvalue of type ‘Mantid::DataObjects::TableWorkspace_sptr {aka boost::shared_ptr<Mantid::DataObjects::TableWorkspace>}’
                  ->asTableWorkspace());
    WorkspaceCreationHelper.h:114:33: note:   initializing argument 2 of ‘void WorkspaceCreationHelper::storeWS(const string&, WSType&) [with WSType = boost::shared_ptr<Mantid::DataObjects::TableWorkspace>; std::__cxx11::string = std::__cxx11::basic_string<char>]’
      template <typename WSType> void storeWS(const std::string &name, WSType &ws) {
    PoldiIndexKnownCompoundsTest.cpp:17:0:
    PoldiIndexKnownCompoundsTest.h: In member function ‘void PoldiIndexKnownCompoundsTest::storeRandomWorkspaces(const std::vector<std::__cxx11::basic_string<char> >&)’:
    PoldiIndexKnownCompoundsTest.h:674:65: error
    bc6eedb6
    History
    Attempt to fix build failures
    Verena Reimund authored
    Refs #22383
    
    OSX
    FAILED: Framework/SINQ/test/CMakeFiles/PSISINQTest.dir/PoldiIndexKnownCompoundsTest.cpp.o
    In file included from Framework/SINQ/test/PoldiIndexKnownCompoundsTest.cpp:17:
    PoldiIndexKnownCompoundsTest.h:40:5: error: no matching function for call to 'storeWS'
        WorkspaceCreationHelper::storeWS(
    WorkspaceCreationHelper.h:114:33: note: candidate function [with WSType = boost::shared_ptr<Mantid::DataObjects::TableWorkspace>] not viable: expects an l-value for 2nd argument
    template <typename WSType> void storeWS(const std::string &name, WSType &ws) {
    In file included from Framework/SINQ/test/PoldiIndexKnownCompoundsTest.cpp:17:
    PoldiIndexKnownCompoundsTest.h:43:5: error: no matching function for call to 'storeWS'
        WorkspaceCreationHelper::storeWS(
    WorkspaceCreationHelper.h:114:33: note: candidate function [with WSType = boost::shared_ptr<Mantid::DataObjects::TableWorkspace>] not viable: expects an l-value for 2nd argument
    template <typename WSType> void storeWS(const std::string &name, WSType &ws) {
    In file included from Framework/SINQ/test/PoldiIndexKnownCompoundsTest.cpp:17:
    PoldiIndexKnownCompoundsTest.h:673:7: error: no matching function for call to 'storeWS'
          WorkspaceCreationHelper::storeWS(
    WorkspaceCreationHelper.h:114:33: note: candidate function [with WSType = boost::shared_ptr<Mantid::DataObjects::Workspace2D>] not viable: expects an l-value for 2nd argument
    template <typename WSType> void storeWS(const std::string &name, WSType &ws) {
    3 errors generated.
    
    Linux
    PoldiIndexKnownCompoundsTest.h:42:66: error: invalid initialization of non-const reference of type ‘boost::shared_ptr<Mantid::DataObjects::TableWorkspace>&’ from an rvalue of type ‘Mantid::DataObjects::TableWorkspace_sptr {aka boost::shared_ptr<Mantid::DataObjects::TableWorkspace>}’
              PoldiPeakCollectionHelpers::createPoldiPeakTableWorkspace());
    PoldiIndexKnownCompoundsTest.cpp:17:
    WorkspaceCreationHelper.h:114:33: note:   initializing argument 2 of ‘void WorkspaceCreationHelper::storeWS(const string&, WSType&) [with WSType = boost::shared_ptr<Mantid::DataObjects::TableWorkspace>; std::__cxx11::string = std::__cxx11::basic_string<char>]’
    10:35:30  template <typename WSType> void storeWS(const std::string &name, WSType &ws) {
    PoldiIndexKnownCompoundsTest.cpp:17:0:
    PoldiIndexKnownCompoundsTest.h:46:31: error: invalid initialization of non-const reference of type ‘boost::shared_ptr<Mantid::DataObjects::TableWorkspace>&’ from an rvalue of type ‘Mantid::DataObjects::TableWorkspace_sptr {aka boost::shared_ptr<Mantid::DataObjects::TableWorkspace>}’
                  ->asTableWorkspace());
    WorkspaceCreationHelper.h:114:33: note:   initializing argument 2 of ‘void WorkspaceCreationHelper::storeWS(const string&, WSType&) [with WSType = boost::shared_ptr<Mantid::DataObjects::TableWorkspace>; std::__cxx11::string = std::__cxx11::basic_string<char>]’
      template <typename WSType> void storeWS(const std::string &name, WSType &ws) {
    PoldiIndexKnownCompoundsTest.cpp:17:0:
    PoldiIndexKnownCompoundsTest.h: In member function ‘void PoldiIndexKnownCompoundsTest::storeRandomWorkspaces(const std::vector<std::__cxx11::basic_string<char> >&)’:
    PoldiIndexKnownCompoundsTest.h:674:65: error
Code owners
Assign users and groups as approvers for specific file changes. Learn more.