diff options
author | ggardet <guillaume.gardet@opensuse.org> | 2018-06-29 17:01:01 +0200 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:54:10 +0000 |
commit | 767c9f77fa884ff7fd376b7bc477dc33a7603418 (patch) | |
tree | 0c7429fa8f74399c26b01765f8aa5e41da5f22c5 /include/half/half.hpp | |
parent | 95008d8749ffdb105835d8088a8894efaeae2a16 (diff) | |
download | ComputeLibrary-767c9f77fa884ff7fd376b7bc477dc33a7603418.tar.gz |
COMPMID-1246: Github PR: Fix build (#454)
* Fix C++11 syntax. It fixes build with GCC.
* Be Python 3.x compatible by replacing print "XXX" by print("XXX")
Change-Id: Id9460a4a698ff98cb49e4efa7134bee7046ea3bb
Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/138087
Tested-by: Jenkins <bsgcomp@arm.com>
Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Diffstat (limited to 'include/half/half.hpp')
-rw-r--r-- | include/half/half.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/half/half.hpp b/include/half/half.hpp index 0d7459bb45..81976bc550 100644 --- a/include/half/half.hpp +++ b/include/half/half.hpp @@ -272,7 +272,7 @@ namespace half_float /// ~~~~
namespace literal
{
- half operator""_h(long double);
+ half operator"" _h(long double);
}
#endif
@@ -1083,7 +1083,7 @@ namespace half_float friend struct std::hash<half>;
#endif
#if HALF_ENABLE_CPP11_USER_LITERALS
- friend half literal::operator""_h(long double);
+ friend half literal::operator"" _h(long double);
#endif
public:
@@ -1196,7 +1196,7 @@ namespace half_float /// to rather involved conversions.
/// \param value literal value
/// \return half with given value (if representable)
- inline half operator""_h(long double value) { return half(detail::binary, detail::float2half<half::round_style>(value)); }
+ inline half operator"" _h(long double value) { return half(detail::binary, detail::float2half<half::round_style>(value)); }
}
#endif
|