Skip to content

Commit c066d2e

Browse files
committed
Default implementation of pure virtual destructor for message_base.
1 parent f74775f commit c066d2e

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

boost/network/message_base.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,8 @@ struct message_base {
4040

4141
} /* boost */
4242

43+
#ifdef BOOST_NETWORK_NO_LIB
44+
#include <boost/network/message_base.ipp>
45+
#endif
46+
4347
#endif /* BOOST_NETWORK_MESSAGE_BASE_HPP_20110910 */

boost/network/message_base.ipp

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#ifndef BOOST_NETWORK_MESSAGE_BASE_IPP_20111020
2+
#define BOOST_NETWORK_MESSAGE_BASE_IPP_20111020
3+
4+
// Copyright 2011 Dean Michael Berris (dberris@google.com).
5+
// Copyright 2011 Google, Inc.
6+
// Distributed under the Boost Software License, Version 1.0.
7+
// (See accompanying file LICENSE_1_0.txt or copy at
8+
// http://www.boost.org/LICENSE_1_0.txt)
9+
10+
#include <boost/network/message_base.hpp>
11+
12+
namespace boost { namespace network {
13+
14+
message_base::~message_base() {
15+
// This is never used, but is required even though message_base's destructor
16+
// is a pure virtual one.
17+
}
18+
19+
} /* network */
20+
21+
} /* boost */
22+
23+
#endif /* BOOST_NETWORK_MESSAGE_BASE_IPP_20111020 */

0 commit comments

Comments
 (0)