Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
thallium
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sds
thallium
Commits
540893fc
Commit
540893fc
authored
Sep 26, 2018
by
Matthieu Dorier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removing more C++14 things that Intel compiler doesn't understand
parent
37122f93
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
include/thallium/engine.hpp
include/thallium/engine.hpp
+2
-2
include/thallium/packed_response.hpp
include/thallium/packed_response.hpp
+3
-1
No files found.
include/thallium/engine.hpp
View file @
540893fc
...
@@ -90,7 +90,7 @@ private:
...
@@ -90,7 +90,7 @@ private:
*/
*/
template
<
typename
F
,
bool
disable_response
>
template
<
typename
F
,
bool
disable_response
>
static
void
rpc_handler_ult
(
hg_handle_t
handle
)
{
static
void
rpc_handler_ult
(
hg_handle_t
handle
)
{
using
G
=
std
::
remove_reference_t
<
F
>
;
using
G
=
typename
std
::
remove_reference
<
F
>::
type
;
const
struct
hg_info
*
info
=
margo_get_info
(
handle
);
const
struct
hg_info
*
info
=
margo_get_info
(
handle
);
margo_instance_id
mid
=
margo_hg_handle_get_instance
(
handle
);
margo_instance_id
mid
=
margo_hg_handle_get_instance
(
handle
);
void
*
data
=
margo_registered_data
(
mid
,
info
->
id
);
void
*
data
=
margo_registered_data
(
mid
,
info
->
id
);
...
@@ -384,7 +384,7 @@ remote_procedure engine::define(const std::string& name,
...
@@ -384,7 +384,7 @@ remote_procedure engine::define(const std::string& name,
std
::
function
<
void
(
Args
...)
>
l
=
[
&
fun
,
&
r
](
Args
&&
...
args
)
{
std
::
function
<
void
(
Args
...)
>
l
=
[
&
fun
,
&
r
](
Args
&&
...
args
)
{
fun
(
r
,
std
::
forward
<
Args
>
(
args
)...);
fun
(
r
,
std
::
forward
<
Args
>
(
args
)...);
};
};
std
::
tuple
<
std
::
decay_t
<
Args
>
...
>
iargs
;
std
::
tuple
<
typename
std
::
decay
<
Args
>::
type
...
>
iargs
;
if
(
sizeof
...(
Args
)
>
0
)
{
if
(
sizeof
...(
Args
)
>
0
)
{
buffer_input_archive
iarch
(
b
,
*
this
);
buffer_input_archive
iarch
(
b
,
*
this
);
iarch
&
iargs
;
iarch
&
iargs
;
...
...
include/thallium/packed_response.hpp
View file @
540893fc
...
@@ -74,7 +74,9 @@ public:
...
@@ -74,7 +74,9 @@ public:
*/
*/
template
<
typename
T1
,
typename
T2
,
typename
...
Tn
>
template
<
typename
T1
,
typename
T2
,
typename
...
Tn
>
auto
as
()
const
{
auto
as
()
const
{
std
::
tuple
<
std
::
decay_t
<
T1
>
,
std
::
decay_t
<
T2
>
,
std
::
decay_t
<
Tn
>
...
>
t
;
std
::
tuple
<
typename
std
::
decay
<
T1
>::
type
,
typename
std
::
decay
<
T2
>::
type
,
typename
std
::
decay_t
<
Tn
>::
type
...
>
t
;
buffer_input_archive
iarch
(
m_buffer
);
buffer_input_archive
iarch
(
m_buffer
);
iarch
&
t
;
iarch
&
t
;
return
t
;
return
t
;
...
...
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