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
9d155412
Unverified
Commit
9d155412
authored
Jun 22, 2022
by
Maarten L. Hekkelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include cstring for gnu c++ 12
parent
35c99564
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
include/cif++/Cif++.hpp
+14
-14
No files found.
include/cif++/Cif++.hpp
View file @
9d155412
...
...
@@ -26,18 +26,18 @@
#pragma once
#include <string>
#include <array>
#include <cstring>
#include <functional>
#include <iomanip>
#include <iostream>
#include <list>
#include <optional>
#include <regex>
#include <set>
#include <sstream>
#include <iomanip>
#include <shared_mutex>
#include <sstream>
#include <string>
#include <boost/format.hpp>
...
...
@@ -147,12 +147,12 @@ class Item
Item
(
std
::
string_view
name
,
char
value
)
:
mName
(
name
)
,
mValue
({
value
})
,
mValue
({
value
})
{
}
template
<
typename
T
,
std
::
enable_if_t
<
std
::
is_floating_point_v
<
T
>
,
int
>
=
0
>
Item
(
std
::
string_view
name
,
const
T
&
value
,
const
char
*
fmt
)
template
<
typename
T
,
std
::
enable_if_t
<
std
::
is_floating_point_v
<
T
>
,
int
>
=
0
>
Item
(
std
::
string_view
name
,
const
T
&
value
,
const
char
*
fmt
)
:
mName
(
name
)
,
mValue
((
boost
::
format
(
fmt
)
%
value
).
str
())
{
...
...
@@ -284,7 +284,7 @@ class Datablock
friend
bool
operator
==
(
const
Datablock
&
lhs
,
const
Datablock
&
rhs
);
friend
std
::
ostream
&
operator
<<
(
std
::
ostream
&
os
,
const
Datablock
&
data
);
friend
std
::
ostream
&
operator
<<
(
std
::
ostream
&
os
,
const
Datablock
&
data
);
private
:
CategoryList
mCategories
;
// LRU
...
...
@@ -1636,7 +1636,7 @@ class conditional_iterator_proxy
using
iterator
=
conditional_iterator_impl
;
using
reference
=
typename
iterator
::
reference
;
template
<
typename
...
Ns
>
template
<
typename
...
Ns
>
conditional_iterator_proxy
(
CategoryType
&
cat
,
row_iterator
pos
,
Condition
&&
cond
,
Ns
...
names
);
conditional_iterator_proxy
(
conditional_iterator_proxy
&&
p
);
...
...
@@ -1910,7 +1910,7 @@ class Category
conditional_iterator_proxy
<
const
Category
>
find
(
const_iterator
pos
,
Condition
&&
cond
)
const
{
return
conditional_iterator_proxy
<
const
Category
>
{
const_cast
<
Category
&>
(
*
this
),
pos
,
std
::
forward
<
Condition
>
(
cond
)};
return
conditional_iterator_proxy
<
const
Category
>
{
const_cast
<
Category
&>
(
*
this
),
pos
,
std
::
forward
<
Condition
>
(
cond
)};
}
template
<
typename
...
Ts
,
typename
...
Ns
>
...
...
@@ -1931,14 +1931,14 @@ class Category
conditional_iterator_proxy
<
Category
,
Ts
...
>
find
(
const_iterator
pos
,
Condition
&&
cond
,
Ns
...
names
)
{
static_assert
(
sizeof
...(
Ts
)
==
sizeof
...(
Ns
),
"The number of column titles should be equal to the number of types to return"
);
return
{
*
this
,
pos
,
std
::
forward
<
Condition
>
(
cond
),
std
::
forward
<
Ns
>
(
names
)...
};
return
{
*
this
,
pos
,
std
::
forward
<
Condition
>
(
cond
),
std
::
forward
<
Ns
>
(
names
)...};
}
template
<
typename
...
Ts
,
typename
...
Ns
>
conditional_iterator_proxy
<
const
Category
,
Ts
...
>
find
(
const_iterator
pos
,
Condition
&&
cond
,
Ns
...
names
)
const
{
static_assert
(
sizeof
...(
Ts
)
==
sizeof
...(
Ns
),
"The number of column titles should be equal to the number of types to return"
);
return
{
*
this
,
pos
,
std
::
forward
<
Condition
>
(
cond
),
std
::
forward
<
Ns
>
(
names
)...
};
return
{
*
this
,
pos
,
std
::
forward
<
Condition
>
(
cond
),
std
::
forward
<
Ns
>
(
names
)...};
}
// --------------------------------------------------------------------
...
...
@@ -1981,13 +1981,13 @@ class Category
}
template
<
typename
T
>
T
find1
(
Condition
&&
cond
,
const
char
*
column
)
const
T
find1
(
Condition
&&
cond
,
const
char
*
column
)
const
{
return
find1
<
T
>
(
cbegin
(),
std
::
forward
<
Condition
>
(
cond
),
column
);
}
template
<
typename
T
>
T
find1
(
const_iterator
pos
,
Condition
&&
cond
,
const
char
*
column
)
const
T
find1
(
const_iterator
pos
,
Condition
&&
cond
,
const
char
*
column
)
const
{
auto
h
=
find
<
T
>
(
pos
,
std
::
forward
<
Condition
>
(
cond
),
column
);
...
...
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