Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
libcifpp
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
libcifpp
Commits
42643288
Commit
42643288
authored
Nov 09, 2022
by
Maarten L. Hekkelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
back on linux
parent
9bc33818
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
include/cif++/iterator.hpp
+1
-1
include/cif++/row.hpp
+1
-1
include/cif++/text.hpp
+2
-2
src/model.cpp
+3
-3
No files found.
include/cif++/iterator.hpp
View file @
42643288
...
...
@@ -151,7 +151,7 @@ class iterator_impl
}
private
:
template
<
uint16
_t
...
Is
>
template
<
size
_t
...
Is
>
tuple_type
get
(
std
::
index_sequence
<
Is
...
>
)
const
{
if
(
m_current
!=
nullptr
)
...
...
include/cif++/row.hpp
View file @
42643288
...
...
@@ -57,7 +57,7 @@ namespace detail
return
get
<
Ts
...
>
(
std
::
index_sequence_for
<
Ts
...
>
{});
}
template
<
typename
...
Ts
,
uint16
_t
...
Is
>
template
<
typename
...
Ts
,
size
_t
...
Is
>
std
::
tuple
<
Ts
...
>
get
(
std
::
index_sequence
<
Is
...
>
)
const
{
return
std
::
tuple
<
Ts
...
>
{
m_row
[
m_columns
[
Is
]].
template
as
<
Ts
>
()...
};
...
...
include/cif++/text.hpp
View file @
42643288
...
...
@@ -409,8 +409,8 @@ enum class chars_format
template
<
typename
FloatType
,
std
::
enable_if_t
<
std
::
is_floating_point_v
<
FloatType
>
,
int
>
=
0
>
std
::
to_chars_result
to_chars
(
char
*
first
,
char
*
last
,
FloatType
&
value
,
chars_format
fmt
)
{
size_t
size
=
last
-
first
;
size_
t
r
=
0
;
int
size
=
static_cast
<
int
>
(
last
-
first
)
;
in
t
r
=
0
;
switch
(
fmt
)
{
...
...
src/model.cpp
View file @
42643288
...
...
@@ -54,9 +54,9 @@ void atom::atom_impl::moveTo(const point &p)
r
.
assign
(
"Cartn_y"
,
std
::
format
(
"{:.3f}"
,
p
.
m_y
),
false
,
false
);
r
.
assign
(
"Cartn_z"
,
std
::
format
(
"{:.3f}"
,
p
.
m_z
),
false
,
false
);
#else
r
.
assign
(
"Cartn_x"
,
cif
::
format
"%.3f"
,
p
.
m_x
).
str
(),
false
,
false
);
r
.
assign
(
"Cartn_y"
,
cif
::
format
"%.3f"
,
p
.
m_y
).
str
(),
false
,
false
);
r
.
assign
(
"Cartn_z"
,
format
(
"%.3f"
,
p
.
m_z
).
str
(),
false
,
false
);
r
.
assign
(
"Cartn_x"
,
cif
::
format
(
"%.3f"
,
p
.
m_x
).
str
(),
false
,
false
);
r
.
assign
(
"Cartn_y"
,
cif
::
format
(
"%.3f"
,
p
.
m_y
).
str
(),
false
,
false
);
r
.
assign
(
"Cartn_z"
,
cif
::
format
(
"%.3f"
,
p
.
m_z
).
str
(),
false
,
false
);
#endif
m_location
=
p
;
}
...
...
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