1
1
#include < catch.hpp>
2
2
#include < zmq.hpp>
3
3
4
- #ifdef ZMQ_CPP11
4
+ #if defined( ZMQ_CPP11) && !defined(ZMQ_CPP11_PARTIAL)
5
5
6
6
namespace test_ns
7
7
{
@@ -16,11 +16,11 @@ struct T_mr
16
16
struct T_fr
17
17
{
18
18
};
19
- void *begin (const T_fr &) noexcept
19
+ inline void *begin (const T_fr &) noexcept
20
20
{
21
21
return nullptr ;
22
22
}
23
- void *end (const T_fr &) noexcept
23
+ inline void *end (const T_fr &) noexcept
24
24
{
25
25
return nullptr ;
26
26
}
@@ -29,11 +29,11 @@ struct T_mfr
29
29
void *begin () const noexcept { return nullptr ; }
30
30
void *end () const noexcept { return nullptr ; }
31
31
};
32
- void *begin (const T_mfr &) noexcept
32
+ inline void *begin (const T_mfr &) noexcept
33
33
{
34
34
return nullptr ;
35
35
}
36
- void *end (const T_mfr &) noexcept
36
+ inline void *end (const T_mfr &) noexcept
37
37
{
38
38
return nullptr ;
39
39
}
@@ -50,11 +50,11 @@ struct T_assoc_ns_mr : std::exception
50
50
struct T_assoc_ns_fr : std::exception
51
51
{
52
52
};
53
- void *begin (const T_assoc_ns_fr &) noexcept
53
+ inline void *begin (const T_assoc_ns_fr &) noexcept
54
54
{
55
55
return nullptr ;
56
56
}
57
- void *end (const T_assoc_ns_fr &) noexcept
57
+ inline void *end (const T_assoc_ns_fr &) noexcept
58
58
{
59
59
return nullptr ;
60
60
}
@@ -63,11 +63,11 @@ struct T_assoc_ns_mfr : std::exception
63
63
void *begin () const noexcept { return nullptr ; }
64
64
void *end () const noexcept { return nullptr ; }
65
65
};
66
- void *begin (const T_assoc_ns_mfr &) noexcept
66
+ inline void *begin (const T_assoc_ns_mfr &) noexcept
67
67
{
68
68
return nullptr ;
69
69
}
70
- void *end (const T_assoc_ns_mfr &) noexcept
70
+ inline void *end (const T_assoc_ns_mfr &) noexcept
71
71
{
72
72
return nullptr ;
73
73
}
0 commit comments