Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
solverstack
ScalFMM
Commits
e14f2180
Commit
e14f2180
authored
Dec 10, 2014
by
BRAMAS Berenger
Browse files
oops missmatch in the deleter for the smart ptr
parent
8607a233
Changes
1
Hide whitespace changes
Inline
Side-by-side
Src/Utils/FSmartPointer.hpp
View file @
e14f2180
...
@@ -24,12 +24,12 @@ enum FSmartPointerType{
...
@@ -24,12 +24,12 @@ enum FSmartPointerType{
template
<
FSmartPointerType
MemoryType
,
class
ClassType
>
template
<
FSmartPointerType
MemoryType
,
class
ClassType
>
inline
typename
std
::
enable_if
<
(
MemoryType
==
FSmartArrayMemory
),
void
>::
type
FSmartDeletePointer
(
ClassType
*
ptr
){
inline
typename
std
::
enable_if
<
(
MemoryType
==
FSmartArrayMemory
),
void
>::
type
FSmartDeletePointer
(
ClassType
*
ptr
){
delete
ptr
;
delete
[]
ptr
;
}
}
template
<
FSmartPointerType
MemoryType
,
class
ClassType
>
template
<
FSmartPointerType
MemoryType
,
class
ClassType
>
inline
typename
std
::
enable_if
<
(
MemoryType
==
FSmartPointerMemory
),
void
>::
type
FSmartDeletePointer
(
ClassType
*
ptr
){
inline
typename
std
::
enable_if
<
(
MemoryType
==
FSmartPointerMemory
),
void
>::
type
FSmartDeletePointer
(
ClassType
*
ptr
){
delete
[]
ptr
;
delete
ptr
;
}
}
/** This class is a basic smart pointer class
/** This class is a basic smart pointer class
...
...
Write
Preview
Markdown
is supported
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