asio 0.1.5 Main Page | Class Index | Member Index | Tutorial

log_error_t Class Template Reference

Class template to always log an error to a stream. More...

List of all members.

Public Member Functions

 log_error_t (Ostream &ostream)
 Constructor.

template<typename Error> bool operator() (const Error &err)
 Evaluate the expression.


Private Attributes

Ostream & ostream_
 The ostream where the error will be logged.


Detailed Description

template<typename Ostream>
class asio::log_error_t< Ostream >

Class template to always log an error to a stream.


Constructor & Destructor Documentation

log_error_t Ostream &  ostream  ) 
 

Constructor.


Member Function Documentation

bool operator() const Error &  err  ) 
 

Evaluate the expression.


Member Data Documentation

Ostream& ostream_ [private]
 

The ostream where the error will be logged.