Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DD4hep
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cepc
externals
mirroring
DD4hep
Commits
6c38628c
Commit
6c38628c
authored
4 years ago
by
Markus Frank
Committed by
MarkusFrankATcernch
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix compiler issue for clang 3.9 (see issue
https://github.com/AIDASoft/DD4hep/issues/683
parent
eeae8cf9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
DDCore/include/DD4hep/Objects.h
+10
-4
10 additions, 4 deletions
DDCore/include/DD4hep/Objects.h
with
10 additions
and
4 deletions
DDCore/include/DD4hep/Objects.h
+
10
−
4
View file @
6c38628c
...
...
@@ -162,13 +162,13 @@ namespace dd4hep {
/// Default constructor
Header
()
=
default
;
/// Constructorto be used for assignment from a handle
Header
(
const
Header
&
e
)
=
default
;
Header
(
const
Header
&
copy
)
=
default
;
/// Constructor to be used when reading the already parsed DOM tree
template
<
typename
Q
>
Header
(
const
Handle
<
Q
>&
e
)
:
Handle
<
HeaderObject
>
(
e
)
{
}
/// Constructor to be used when creating a new DOM tree
Header
(
const
std
::
string
&
author
,
const
std
::
string
&
url
);
/// Assignment operator
Header
&
operator
=
(
const
Header
&
e
)
=
default
;
Header
&
operator
=
(
const
Header
&
copy
)
=
default
;
/// Accessor to object name
const
std
::
string
name
()
const
;
/// Accessor: set object name
...
...
@@ -212,14 +212,20 @@ namespace dd4hep {
public:
/// Default constructor
Constant
()
=
default
;
/// Constructorto be used for assignment from a handle
Constant
(
const
Constant
&
e
)
=
default
;
/// Constructor
to be used for assignment from a handle
Constant
(
const
Constant
&
copy
)
=
default
;
/// Constructor to be used when reading the already parsed DOM tree
template
<
typename
Q
>
Constant
(
const
Handle
<
Q
>&
e
)
:
Handle
<
ConstantObject
>
(
e
)
{
}
/// Constructor to be used when creating a new DOM tree
Constant
(
const
std
::
string
&
name
);
/// Constructor to be used when creating a new DOM tree
Constant
(
const
std
::
string
&
name
,
const
std
::
string
&
val
,
const
std
::
string
&
typ
=
"number"
);
/// Copy assignment
Constant
&
operator
=
(
const
Constant
&
copy
)
=
default
;
/// Equality operator
bool
operator
==
(
const
Constant
&
rhs
)
const
{
return
m_element
==
rhs
.
m_element
;
}
/// Access the constant
std
::
string
dataType
()
const
;
/// String representation of this object
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment