Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/sanear.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Marsev <alex.marsev@gmail.com>2016-01-27 10:21:03 +0300
committerAlex Marsev <alex.marsev@gmail.com>2016-01-27 10:21:03 +0300
commit184c50adcbf72f3bc21926bfa06cce5e1a390d1c (patch)
treef7e3e3129948ae06ec05d1ced6cf83250b38806c
parent85e9c5b1d4232994f64a0a42e543680e596736c1 (diff)
Minor code refactoring
-rw-r--r--src/Utils.h16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/Utils.h b/src/Utils.h
index 8b996aa..0e27d7e 100644
--- a/src/Utils.h
+++ b/src/Utils.h
@@ -89,17 +89,15 @@ namespace SaneAudioRenderer
return SharedWaveFormat(reinterpret_cast<WAVEFORMATEX*>(pBuffer), AlignedFreeDeleter());
}
- namespace
- {
- void DebugOutForward(std::wostringstream&) {}
+ inline void DebugOutForward(std::wostringstream&) {}
- template <typename T0, typename... T>
- void DebugOutForward(std::wostringstream& stream, T0&& arg0, T&&... args)
- {
- stream << " " << arg0;
- DebugOutForward(stream, std::forward<T>(args)...);
- }
+ template <typename T0, typename... T>
+ inline void DebugOutForward(std::wostringstream& stream, T0&& arg0, T&&... args)
+ {
+ stream << " " << arg0;
+ DebugOutForward(stream, std::forward<T>(args)...);
}
+
template <typename... T>
inline void DebugOut(T&&... args)
{