Skip to content
Snippets Groups Projects
Commit 98b3a7b0 authored by Tobias Leibner's avatar Tobias Leibner
Browse files

[common.print] add forward declarations

parent c3def508
No related branches found
No related tags found
1 merge request!41Fix compilation with icc, several other changes
...@@ -26,6 +26,16 @@ ...@@ -26,6 +26,16 @@
namespace Dune { namespace Dune {
namespace XT { namespace XT {
namespace Common { namespace Common {
// forward declarations
template <class T, bool use_repr = false, typename anything = void>
class Printer;
template <class T>
Printer<T, false> print(const T& /*value*/, const Configuration& /*param*/ = {});
namespace internal { namespace internal {
...@@ -222,7 +232,7 @@ public: ...@@ -222,7 +232,7 @@ public:
* \sa print * \sa print
* \sa repr * \sa repr
*/ */
template <class T, bool use_repr = false, typename anything = void> template <class T, bool use_repr, typename anything>
class Printer : public internal::DefaultPrinter<T, use_repr> class Printer : public internal::DefaultPrinter<T, use_repr>
{ {
public: public:
...@@ -282,7 +292,7 @@ std::cout << complicated_object << std::endl; ...@@ -282,7 +292,7 @@ std::cout << complicated_object << std::endl;
* \sa repr * \sa repr
*/ */
template <class T> template <class T>
Printer<T, false> print(const T& value, const Configuration& param = {}) Printer<T, false> print(const T& value, const Configuration& param)
{ {
return Printer<T, false>(value, param); return Printer<T, false>(value, param);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment