Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pugs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
code
pugs
Commits
8cfe343c
Commit
8cfe343c
authored
Apr 12, 2021
by
Stéphane Del Pino
Browse files
Options
Downloads
Patches
Plain Diff
Explain why one cannot use std::make_shared at this point
parent
b98b5b65
No related branches found
No related tags found
1 merge request
!86
Fix builtin function call disambiguation
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/mesh/Connectivity.hpp
+5
-4
5 additions, 4 deletions
src/mesh/Connectivity.hpp
with
5 additions
and
4 deletions
src/mesh/Connectivity.hpp
+
5
−
4
View file @
8cfe343c
...
...
@@ -658,11 +658,12 @@ class Connectivity final : public IConnectivity
~
Connectivity
()
=
default
;
};
template
<
size_t
Dim
>
PUGS_INLINE
std
::
shared_ptr
<
Connectivity
<
Dim
>>
Connectivity
<
Dim
>::
build
(
const
ConnectivityDescriptor
&
descriptor
)
template
<
size_t
Dim
ension
>
PUGS_INLINE
std
::
shared_ptr
<
Connectivity
<
Dim
ension
>>
Connectivity
<
Dim
ension
>::
build
(
const
ConnectivityDescriptor
&
descriptor
)
{
std
::
shared_ptr
<
Connectivity
<
Dim
>>
connectivity_ptr
(
new
Connectivity
<
Dim
>
);
// Cannot use std::make_shared in this context since the default constructor is private
std
::
shared_ptr
<
Connectivity
<
Dimension
>>
connectivity_ptr
(
new
Connectivity
<
Dimension
>
);
connectivity_ptr
->
_buildFrom
(
descriptor
);
return
connectivity_ptr
;
...
...
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
sign in
to comment