Menu

[r1]: / trunk / boost / network / detail / directive_base.hpp  Maximize  Restore  History

Download this file

35 lines (24 with data), 1.0 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Copyright Dean Michael Berris 2007.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef __NETWORK_DETAIL_DIRECTIVE_BASE_HPP__
#define __NETWORK_DETAIL_DIRECTIVE_BASE_HPP__
/** Defines the base type from which all directives inherit
* to allow friend access to message and other types' internals.
*/
namespace boost { namespace network { namespace detail {
template <class Tag>
struct directive_base {
typedef Tag tag ;
//explicit directive_base(basic_message<tag> & message_)
// : _message(message_)
protected:
virtual ~directive_base()
{ }; // can only be extended
// mutable basic_message<tag> & _message;
};
}; // namespace detail
}; // namespace network
}; // namespace boost
#endif // __NETWORK_DETAIL_DIRECTIVE_BASE_HPP__