Skip to content

Commit

Permalink
Fix clang-14/ROCM build with JSON enabled (#496)
Browse files Browse the repository at this point in the history
The unintentional explicit constructor causes problems with nljson on
clang 14. This showed up because of the IO in #463.
  • Loading branch information
sethrj authored Aug 21, 2022
1 parent f7dbf69 commit 3ef6b5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/celeritas/phys/PDGNumber.hh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class PDGNumber
{
public:
//! Construct with an invalid/unassigned value of zero
explicit constexpr PDGNumber() = default;
constexpr PDGNumber() = default;

//! Construct with the PDG value
explicit constexpr PDGNumber(int val) : value_(val) {}
Expand Down

0 comments on commit 3ef6b5b

Please sign in to comment.