Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-xt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ag-ohlberger
dune-community
dune-xt
Commits
98b3a7b0
Commit
98b3a7b0
authored
4 years ago
by
Tobias Leibner
Browse files
Options
Downloads
Patches
Plain Diff
[common.print] add forward declarations
parent
c3def508
No related branches found
Branches containing commit
No related tags found
1 merge request
!41
Fix compilation with icc, several other changes
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/xt/common/print.hh
+12
-2
12 additions, 2 deletions
dune/xt/common/print.hh
with
12 additions
and
2 deletions
dune/xt/common/print.hh
+
12
−
2
View file @
98b3a7b0
...
@@ -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
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment