Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
Akonadi
Commits
a0d615cb
Commit
a0d615cb
authored
Oct 29, 2020
by
Daniel Vrátil
Browse files
Remove C++14 construct from public header
parent
cd0f10af
Pipeline
#38995
failed with stage
in 60 minutes and 2 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/core/attributefactory.h
View file @
a0d615cb
...
@@ -50,7 +50,7 @@ public:
...
@@ -50,7 +50,7 @@ public:
template
<
typename
T
>
inline
static
void
registerAttribute
()
template
<
typename
T
>
inline
static
void
registerAttribute
()
{
{
static_assert
(
std
::
is_default_constructible
<
T
>::
value
,
"An Attribute must be default-constructible."
);
static_assert
(
std
::
is_default_constructible
<
T
>::
value
,
"An Attribute must be default-constructible."
);
AttributeFactory
::
self
()
->
registerAttribute
(
std
::
make_
unique
<
T
>
()
);
AttributeFactory
::
self
()
->
registerAttribute
(
std
::
unique
_ptr
<
T
>
{
new
T
{}}
);
}
}
/**
/**
...
...
Daniel Vrátil
🤖
@dvratil
mentioned in commit
261678d5
·
Oct 29, 2020
mentioned in commit
261678d5
mentioned in commit 261678d504a27d75eaa1d8b1730e837f39858952
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment