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
72f039ec
Commit
72f039ec
authored
4 years ago
by
Tobias Leibner
Browse files
Options
Downloads
Patches
Plain Diff
[test.crtp] silence warning
parent
9fb90330
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!41
Fix compilation with icc, several other changes
Pipeline
#64742
passed
4 years ago
Stage: images
Stage: cpp
Stage: python
Stage: headercheck
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/xt/test/common/crtp.cc
+9
-0
9 additions, 0 deletions
dune/xt/test/common/crtp.cc
with
9 additions
and
0 deletions
dune/xt/test/common/crtp.cc
+
9
−
0
View file @
72f039ec
...
...
@@ -11,6 +11,8 @@
// This one has to come first (includes the config.h)!
#include
<dune/xt/test/main.hxx>
#include
<boost/config.hpp>
#include
<dune/xt/common/crtp.hh>
template
<
class
Traits
>
...
...
@@ -36,11 +38,18 @@ class TestInterface : public Dune::XT::Common::CRTPInterface<TestInterface<Trait
public:
typedef
typename
Traits
::
BackendType
BackendType
;
#if defined(BOOST_CLANG) && BOOST_CLANG
# pragma GCC diagnostic push
# pragma clang diagnostic ignored "-Winfinite-recursion"
#endif
inline
BackendType
&
backend
()
{
CHECK_CRTP
(
this
->
as_imp
().
backend
());
return
this
->
as_imp
().
backend
();
}
#if defined(BOOST_CLANG) && BOOST_CLANG
# pragma GCC diagnostic pop
#endif
inline
const
BackendType
&
backend
()
const
{
...
...
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