1 // PR c++/66254
2 // { dg-do compile { target c++11 } }
3 
4 namespace boost {
5 namespace http {
6 
7 enum class read_state
8 {
9     empty
10 };
11 
12 template<class Socket>
13 class basic_socket
14 {
15 public:
16     http::read_state read_state() const;
17 
18     void async_read_request();
19 
20 private:
21     http::read_state istate;
22 };
23 
24 template<class Socket>
read_state()25 read_state basic_socket<Socket>::read_state() const
26 {
27     return istate;
28 }
29 
30 template<class Socket>
async_read_request()31 void basic_socket<Socket>::async_read_request()
32 {
33     read_state::empty;
34 }
35 
36 } // namespace boost
37 } // namespace http
38