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
Sbalzarini Lab
S
Software
P
Parallel Computing
OpenFPM
openfpm_io
Commits
9154ba93
Commit
9154ba93
authored
Nov 23, 2015
by
Pietro Incardona
Browse files
Small fixes in io
parent
c0f95ccf
Changes
1
Show whitespace changes
Inline
Side-by-side
src/CSVWriter.hpp
View file @
9154ba93
...
...
@@ -54,7 +54,7 @@ struct csv_prp
void
operator
()(
T
&
t
)
{
// This is the type of the csv column
typedef
typename
boost
::
fusion
::
result_of
::
at_c
<
typename
Tobj
::
type
,
T
::
value
>
::
type
col_type
;
typedef
decltype
(
obj
.
template
get
<
T
::
value
>
())
col_type
;
// Remove the reference from the column type
typedef
typename
boost
::
remove_reference
<
col_type
>::
type
col_rtype
;
...
...
@@ -87,7 +87,7 @@ struct csv_col
void
operator
()(
T
&
t
)
{
// This is the type of the csv column
typedef
typename
boost
::
fusion
::
result_of
::
at_c
<
typename
Tobj
::
type
,
T
::
value
>
::
type
col_type
;
typedef
decltype
(
std
::
declval
<
Tobj
>
.
template
get
<
T
::
value
>
())
col_type
;
// Remove the reference from the column type
typedef
typename
boost
::
remove_reference
<
col_type
>::
type
col_rtype
;
...
...
@@ -206,9 +206,9 @@ class CSVWriter
}
// Object to write
typename
v_prp
::
value_type
obj
=
vpr
.
get
(
i
);
auto
obj
=
vpr
.
get
(
i
);
csv_prp
<
typename
v_prp
::
value_type
>
c_prp
(
str
,
obj
);
csv_prp
<
decltype
(
obj
)
>
c_prp
(
str
,
obj
);
// write the properties to the stream string
boost
::
mpl
::
for_each
<
boost
::
mpl
::
range_c
<
int
,
0
,
v_prp
::
value_type
::
max_prop
>
>
(
c_prp
);
...
...
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