11#include < catch.hpp>
22#include < zmq.hpp>
33
4- #ifdef ZMQ_CPP11
4+ #if defined( ZMQ_CPP11) && !defined(ZMQ_CPP11_PARTIAL)
55
66namespace test_ns
77{
@@ -16,11 +16,11 @@ struct T_mr
1616struct T_fr
1717{
1818};
19- void *begin (const T_fr &) noexcept
19+ inline void *begin (const T_fr &) noexcept
2020{
2121 return nullptr ;
2222}
23- void *end (const T_fr &) noexcept
23+ inline void *end (const T_fr &) noexcept
2424{
2525 return nullptr ;
2626}
@@ -29,11 +29,11 @@ struct T_mfr
2929 void *begin () const noexcept { return nullptr ; }
3030 void *end () const noexcept { return nullptr ; }
3131};
32- void *begin (const T_mfr &) noexcept
32+ inline void *begin (const T_mfr &) noexcept
3333{
3434 return nullptr ;
3535}
36- void *end (const T_mfr &) noexcept
36+ inline void *end (const T_mfr &) noexcept
3737{
3838 return nullptr ;
3939}
@@ -50,11 +50,11 @@ struct T_assoc_ns_mr : std::exception
5050struct T_assoc_ns_fr : std::exception
5151{
5252};
53- void *begin (const T_assoc_ns_fr &) noexcept
53+ inline void *begin (const T_assoc_ns_fr &) noexcept
5454{
5555 return nullptr ;
5656}
57- void *end (const T_assoc_ns_fr &) noexcept
57+ inline void *end (const T_assoc_ns_fr &) noexcept
5858{
5959 return nullptr ;
6060}
@@ -63,11 +63,11 @@ struct T_assoc_ns_mfr : std::exception
6363 void *begin () const noexcept { return nullptr ; }
6464 void *end () const noexcept { return nullptr ; }
6565};
66- void *begin (const T_assoc_ns_mfr &) noexcept
66+ inline void *begin (const T_assoc_ns_mfr &) noexcept
6767{
6868 return nullptr ;
6969}
70- void *end (const T_assoc_ns_mfr &) noexcept
70+ inline void *end (const T_assoc_ns_mfr &) noexcept
7171{
7272 return nullptr ;
7373}
0 commit comments