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

log_error_if_t Class Template Reference

Class template to log an error to a stream if an expression is true. More...

List of all members.

Public Member Functions

 log_error_if_t (Ostream &ostream, Expr expr)
 Constructor.

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


Private Attributes

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

Expr expr_
 The expression which, if true, will result in the error being logged.


Detailed Description

template<typename Ostream, typename Expr>
class asio::log_error_if_t< Ostream, Expr >

Class template to log an error to a stream if an expression is true.


Constructor & Destructor Documentation

log_error_if_t Ostream &  ostream,
Expr  expr
 

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.

Expr expr_ [private]
 

The expression which, if true, will result in the error being logged.