Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
cpp-libs
Actor Framework
Commits
b35e41a8
Commit
b35e41a8
authored
Dec 12, 2014
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unnecessary includes
parent
8dbf1266
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
15 deletions
+9
-15
libcaf_core/caf/detail/safe_equal.hpp
libcaf_core/caf/detail/safe_equal.hpp
+9
-15
No files found.
libcaf_core/caf/detail/safe_equal.hpp
View file @
b35e41a8
...
...
@@ -17,19 +17,13 @@
* http://www.boost.org/LICENSE_1_0.txt. *
******************************************************************************/
#ifndef CAF_DETAIL_S
PLIT
_HPP
#define CAF_DETAIL_S
PLIT
_HPP
#ifndef CAF_DETAIL_S
AFE_EQUAL
_HPP
#define CAF_DETAIL_S
AFE_EQUAL
_HPP
#include <cmath> // fabs
#include <string>
#include <vector>
#include <limits>
#include <sstream>
#include <algorithm>
#include <type_traits>
#include "caf/detail/type_traits.hpp"
namespace
caf
{
namespace
detail
{
...
...
@@ -39,18 +33,18 @@ namespace detail {
* performs an epsilon comparison.
*/
template
<
class
T
,
typename
U
>
typename
std
::
enable_if
<
!
std
::
is_floating_point
<
T
>::
value
&&
!
std
::
is_floating_point
<
U
>::
value
,
bool
typename
std
::
enable_if
<
!
std
::
is_floating_point
<
T
>::
value
&&
!
std
::
is_floating_point
<
U
>::
value
,
bool
>::
type
safe_equal
(
const
T
&
lhs
,
const
U
&
rhs
)
{
return
lhs
==
rhs
;
}
template
<
class
T
,
typename
U
>
typename
std
::
enable_if
<
std
::
is_floating_point
<
T
>::
value
||
std
::
is_floating_point
<
U
>::
value
,
bool
typename
std
::
enable_if
<
std
::
is_floating_point
<
T
>::
value
||
std
::
is_floating_point
<
U
>::
value
,
bool
>::
type
safe_equal
(
const
T
&
lhs
,
const
U
&
rhs
)
{
using
res_type
=
decltype
(
lhs
-
rhs
);
...
...
@@ -60,4 +54,4 @@ safe_equal(const T& lhs, const U& rhs) {
}
// namespace detail
}
// namespace caf
#endif // CAF_DETAIL_S
PLIT
_HPP
#endif // CAF_DETAIL_S
AFE_EQUAL
_HPP
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