Line |
Branch |
Exec |
Source |
1 |
|
|
#ifndef DUMUX_COVERAGE_TEST_EXAMPLE_HH |
2 |
|
|
#define DUMUX_COVERAGE_TEST_EXAMPLE_HH |
3 |
|
|
|
4 |
|
|
#include <iostream> |
5 |
|
|
|
6 |
|
|
namespace Dumux { |
7 |
|
|
|
8 |
|
|
template<bool useGerman = false> |
9 |
|
|
struct Printer; |
10 |
|
|
|
11 |
|
|
template<> |
12 |
|
|
struct Printer<false> |
13 |
|
|
{ |
14 |
|
✗ |
void print() const |
15 |
|
|
{ |
16 |
|
✗ |
std::cout << "Hello World!" << std::endl; |
17 |
|
✗ |
} |
18 |
|
|
}; |
19 |
|
|
|
20 |
|
|
template<> |
21 |
|
|
struct Printer<true> |
22 |
|
|
{ |
23 |
|
✗ |
void print() const |
24 |
|
|
{ |
25 |
|
✗ |
std::cout << "Hallo Welt!" << std::endl; |
26 |
|
✗ |
} |
27 |
|
|
}; |
28 |
|
|
|
29 |
|
|
} // end namespace Dumux |
30 |
|
|
|
31 |
|
|
#endif |
32 |
|
|
|