Apply clang-format
This commit is contained in:
parent
f0b777207e
commit
1aa8b387e1
|
@ -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)"));
|
||||
* ```
|
||||
*/
|
||||
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)
|
||||
{
|
||||
return tupleToString(std::tuple_cat(lhs, std::make_tuple(rhs)));
|
||||
|
|
|
@ -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).
|
||||
* \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)
|
||||
{
|
||||
const bool negative = number < 0;
|
||||
|
|
Loading…
Reference in New Issue