Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
80fe3bab
"git@developer.sourcefind.cn:gaoqiong/migraphx.git" did not exist on "fb6093dd9ed8c0b3ac07175a2fd98cd7813392c6"
Commit
80fe3bab
authored
Aug 28, 2018
by
wsttiger
Browse files
Formatting
parent
e9029c8e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/include/migraph/make_shared_array.hpp
src/include/migraph/make_shared_array.hpp
+3
-2
No files found.
src/include/migraph/make_shared_array.hpp
View file @
80fe3bab
...
...
@@ -5,9 +5,10 @@
namespace
migraph
{
template
<
typename
T
>
std
::
shared_ptr
<
T
>
make_shared_array
(
size_t
size
)
template
<
typename
T
>
std
::
shared_ptr
<
T
>
make_shared_array
(
size_t
size
)
{
return
std
::
shared_ptr
<
T
>
(
new
T
[
size
],
std
::
default_delete
<
T
[]
>
());
return
std
::
shared_ptr
<
T
>
(
new
T
[
size
],
std
::
default_delete
<
T
[]
>
());
}
}
// namespace migraph
...
...
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