Uploaded image for project: 'ROOT'
  1. ROOT
  2. ROOT-9611

Catching polymorphic by value in DataSet, Reader, VariableGaussTransform

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • High
    • Resolution: Fixed
    • 6.14/02
    • 6.16/00
    • TMVA
    • None
    • ArchLinux x86_64, GCC 8.2.0

    Description

      /tmp/root-extra-3066864264136862138/root-extra/src/root-6.14.02/tmva/tmva/src/DataSet.cxx: In member function ‘Long64_t TMVA::DataSet::GetNClassEvents(Int_t, UInt_t)’:
      /tmp/root-extra-3066864264136862138/root-extra/src/root-6.14.02/tmva/tmva/src/DataSet.cxx:173:16: warning: catching polymorphic type ‘class std::out_of_range’ by value [-Wcatch-value=]
          catch (std::out_of_range) {
                      ^~~~~~~~~~~~
      /tmp/root-extra-3066864264136862138/root-extra/src/root-6.14.02/tmva/tmva/src/Reader.cxx: In member function ‘Float_t TMVA::Reader::EvaluateRegression(UInt_t, const TString&, Double_t)’:
      /tmp/root-extra-3066864264136862138/root-extra/src/root-6.14.02/tmva/tmva/src/Reader.cxx:636:16: warning: catching polymorphic type ‘class std::out_of_range’ by value [-Wcatch-value=]
          catch (std::out_of_range) {
                      ^~~~~~~~~~~~
      /tmp/root-extra-3066864264136862138/root-extra/src/root-6.14.02/tmva/tmva/src/Reader.cxx: In member function ‘Float_t TMVA::Reader::EvaluateMulticlass(UInt_t, const TString&, Double_t)’:
      /tmp/root-extra-3066864264136862138/root-extra/src/root-6.14.02/tmva/tmva/src/Reader.cxx:702:16: warning: catching polymorphic type ‘class std::out_of_range’ by value [-Wcatch-value=]
          catch (std::out_of_range) {
                      ^~~~~~~~~~~~
      /tmp/root-extra-3066864264136862138/root-extra/src/root-6.14.02/tmva/tmva/src/VariableGaussTransform.cxx: In member function ‘virtual void TMVA::VariableGaussTransform::MakeFunction(std::ostream&, const TString&, Int_t, UInt_t, Int_t)’:
      /tmp/root-extra-3066864264136862138/root-extra/src/root-6.14.02/tmva/tmva/src/VariableGaussTransform.cxx:751:26: warning: catching polymorphic type ‘class std::out_of_range’ by value [-Wcatch-value=]
                   }catch( std::out_of_range ){
                                ^~~~~~~~~~~~
      

      Attachments

        Activity

          People

            moneta Lorenzo Moneta
            kgizdov Konstantin Gizdov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Actual End: