title: Implement getters and setters in header file
body: <p>I have a simple question, is it a good practise to implement getters and setters in the header file, like this ?</p>
  
  <pre><code>class WebsocketSession : public boost::enable_shared_from_this&lt;WebsocketSession&gt;{
  public:
      WebsocketSession(boost::asio::io_service&amp; io_service, WebsocketServer&amp; server);
  
      tcp::socket&amp; getSocket() { return socket_; } // &lt;---  This
  private:
      tcp::socket socket_;
      WebsocketServer&amp; server_;
  };
  </code></pre>