Apply clang-format

This commit is contained in:
Martchus 2018-05-08 00:35:51 +02:00
parent f0b777207e
commit 1aa8b387e1
4 changed files with 31 additions and 29 deletions

View File

@ -253,7 +253,8 @@ inline std::string operator+(const Tuple &lhs, const char *rhs)
* printVelocity("velocity: " % numberToString(velocityExample) % " km/h (" % numberToString(velocityExample / 3.6) + " m/s)")); * printVelocity("velocity: " % numberToString(velocityExample) % " km/h (" % numberToString(velocityExample / 3.6) + " m/s)"));
* ``` * ```
*/ */
template <class Tuple, typename IntegralType, Traits::EnableIf<Traits::IsSpecializationOf<Tuple, std::tuple>, std::is_integral<IntegralType>>* = nullptr> template <class Tuple, typename IntegralType,
Traits::EnableIf<Traits::IsSpecializationOf<Tuple, std::tuple>, std::is_integral<IntegralType>> * = nullptr>
inline std::string operator+(const Tuple &lhs, IntegralType rhs) inline std::string operator+(const Tuple &lhs, IntegralType rhs)
{ {
return tupleToString(std::tuple_cat(lhs, std::make_tuple(rhs))); return tupleToString(std::tuple_cat(lhs, std::make_tuple(rhs)));

View File

@ -308,7 +308,8 @@ StringType numberToString(IntegralType number, typename StringType::value_type b
* \tparam StringType The string type (should be an instantiation of the basic_string class template). * \tparam StringType The string type (should be an instantiation of the basic_string class template).
* \sa stringToNumber() * \sa stringToNumber()
*/ */
template <typename IntegralType, class StringType = std::string, Traits::EnableIf<std::is_integral<IntegralType>, std::is_signed<IntegralType>>* = nullptr> template <typename IntegralType, class StringType = std::string,
Traits::EnableIf<std::is_integral<IntegralType>, std::is_signed<IntegralType>> * = nullptr>
StringType numberToString(IntegralType number, typename StringType::value_type base = 10) StringType numberToString(IntegralType number, typename StringType::value_type base = 10)
{ {
const bool negative = number < 0; const bool negative = number < 0;