-
Notifications
You must be signed in to change notification settings - Fork 185
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8922 from cms-sw/cpp20-changes
Backport cpp20 changes to master branch
- Loading branch information
Showing
5 changed files
with
77 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
diff --git a/include/Pythia8/SusyLesHouches.h b/include/Pythia8/SusyLesHouches.h | ||
index 43d6d621..5a57a968 100644 | ||
--- a/include/Pythia8/SusyLesHouches.h | ||
+++ b/include/Pythia8/SusyLesHouches.h | ||
@@ -28,7 +28,7 @@ namespace Pythia8 { | ||
public: | ||
|
||
//Constructor. | ||
- LHblock<T>() : idnow(0), qDRbar(), i(), val() {} ; | ||
+ LHblock() : idnow(0), qDRbar(), i(), val() {} ; | ||
|
||
//Does block exist? | ||
bool exists() { return int(entry.size()) == 0 ? false : true ; }; | ||
@@ -129,7 +129,7 @@ namespace Pythia8 { | ||
template <int size> class LHmatrixBlock { | ||
public: | ||
//Constructor. Set uninitialized and explicitly zero. | ||
- LHmatrixBlock<size>() : entry(), qDRbar(), val() { | ||
+ LHmatrixBlock() : entry(), qDRbar(), val() { | ||
initialized=false; | ||
for (i=1;i<=size;i++) { | ||
for (j=1;j<=size;j++) { | ||
@@ -208,7 +208,7 @@ namespace Pythia8 { | ||
template <int size> class LHtensor3Block { | ||
public: | ||
//Constructor. Set uninitialized and explicitly zero. | ||
- LHtensor3Block<size>() : entry(), qDRbar(), val() { | ||
+ LHtensor3Block() : entry(), qDRbar(), val() { | ||
initialized=false; | ||
for (i=1;i<=size;i++) { | ||
for (j=1;j<=size;j++) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
From 1de52ee230891277370fc4f787fc8cb4b7626ef2 Mon Sep 17 00:00:00 2001 | ||
From: iarspider <[email protected]> | ||
Date: Wed, 28 Jun 2023 07:35:10 +0000 | ||
Subject: [PATCH] [ATOOLS] Fix C++20 compilation errors | ||
|
||
--- | ||
ATOOLS/Org/Getter_Function.H | 5 ++--- | ||
1 file changed, 2 insertions(+), 3 deletions(-) | ||
|
||
diff --git a/ATOOLS/Org/Getter_Function.H b/ATOOLS/Org/Getter_Function.H | ||
index f68d190ca2..09340da390 100644 | ||
--- a/ATOOLS/Org/Getter_Function.H | ||
+++ b/ATOOLS/Org/Getter_Function.H | ||
@@ -84,7 +84,7 @@ namespace ATOOLS { | ||
void PrintInfo(std::ostream &str,const size_t width) const; \ | ||
Object_Type *operator()(const Parameter_Type ¶meters) const; \ | ||
public: \ | ||
- Getter<OBJECT,PARAMETER,NAME,SORT>(const bool &d=true): \ | ||
+ Getter(const bool &d=true): \ | ||
Getter_Function<OBJECT,PARAMETER,SORT>(TAG) \ | ||
{ SetDisplay(d); } \ | ||
}; \ | ||
@@ -107,8 +107,7 @@ namespace ATOOLS { | ||
void PrintInfo(std::ostream &str,const size_t width) const; \ | ||
Object_Type *operator()(const Parameter_Type ¶meters) const; \ | ||
public: \ | ||
- Getter<OBJECT,PARAMETER,NAME,SORT> \ | ||
- (const std::string &name,const bool d=true): \ | ||
+ Getter(const std::string &name,const bool d=true): \ | ||
Getter_Function<OBJECT,PARAMETER,SORT>(name) \ | ||
{ SetDisplay(d); } \ | ||
}; \ | ||
-- | ||
GitLab | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters