Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
loco-3d
Multicontact-api
Commits
1c3fe6c6
Commit
1c3fe6c6
authored
Dec 09, 2021
by
Guilhem Saurel
Browse files
remove dynamic exception specification for C++17 compatibility
parent
3f86011f
Pipeline
#17100
failed with stage
in 8 minutes and 50 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
include/multicontact-api/serialization/archive.hpp
View file @
1c3fe6c6
...
...
@@ -41,7 +41,7 @@ struct Serializable {
public:
/// \brief Loads a Derived object from a text file.
void
loadFromText
(
const
std
::
string
&
filename
)
throw
(
std
::
invalid_argument
)
{
void
loadFromText
(
const
std
::
string
&
filename
)
{
std
::
ifstream
ifs
(
filename
.
c_str
());
if
(
ifs
)
{
boost
::
archive
::
text_iarchive
ia
(
ifs
);
...
...
@@ -53,7 +53,7 @@ struct Serializable {
}
/// \brief Saved a Derived object as a text file.
void
saveAsText
(
const
std
::
string
&
filename
)
const
throw
(
std
::
invalid_argument
)
{
void
saveAsText
(
const
std
::
string
&
filename
)
const
{
std
::
ofstream
ofs
(
filename
.
c_str
());
if
(
ofs
)
{
boost
::
archive
::
text_oarchive
oa
(
ofs
);
...
...
@@ -65,7 +65,7 @@ struct Serializable {
}
/// \brief Loads a Derived object from an XML file.
void
loadFromXML
(
const
std
::
string
&
filename
,
const
std
::
string
&
tag_name
)
throw
(
std
::
invalid_argument
)
{
void
loadFromXML
(
const
std
::
string
&
filename
,
const
std
::
string
&
tag_name
)
{
assert
(
!
tag_name
.
empty
());
std
::
ifstream
ifs
(
filename
.
c_str
());
if
(
ifs
)
{
...
...
@@ -78,7 +78,7 @@ struct Serializable {
}
/// \brief Saved a Derived object as an XML file.
void
saveAsXML
(
const
std
::
string
&
filename
,
const
std
::
string
&
tag_name
)
const
throw
(
std
::
invalid_argument
)
{
void
saveAsXML
(
const
std
::
string
&
filename
,
const
std
::
string
&
tag_name
)
const
{
assert
(
!
tag_name
.
empty
());
std
::
ofstream
ofs
(
filename
.
c_str
());
if
(
ofs
)
{
...
...
@@ -91,7 +91,7 @@ struct Serializable {
}
/// \brief Loads a Derived object from an binary file.
void
loadFromBinary
(
const
std
::
string
&
filename
)
throw
(
std
::
invalid_argument
)
{
void
loadFromBinary
(
const
std
::
string
&
filename
)
{
std
::
ifstream
ifs
(
filename
.
c_str
());
if
(
ifs
)
{
boost
::
archive
::
binary_iarchive
ia
(
ifs
);
...
...
@@ -103,7 +103,7 @@ struct Serializable {
}
/// \brief Saved a Derived object as an binary file.
void
saveAsBinary
(
const
std
::
string
&
filename
)
const
throw
(
std
::
invalid_argument
)
{
void
saveAsBinary
(
const
std
::
string
&
filename
)
const
{
std
::
ofstream
ofs
(
filename
.
c_str
());
if
(
ofs
)
{
boost
::
archive
::
binary_oarchive
oa
(
ofs
);
...
...
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