Changeset 43:c15c498f5623 in rrlib_logging


Ignore:
Timestamp:
15.12.2010 20:34:09 (10 years ago)
Author:
Jens Wettach <wettach@…>
Branch:
default
Phase:
public
Convert:
svn:2179b62a-598e-4714-ba03-d8986cbf34aa/trunk@44
Message:

added test case for <ostream_iterator> output via <RRLIB_LOG_STREAM>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/test_messages.cpp

    r40 r43  
    3535#include <iostream> 
    3636#include <stdexcept> 
     37#include <iterator> 
    3738 
    3839extern "C" 
     
    146147  RRLIB_LOG_STREAM(eLL_USER) << "Und das hier ein mehrzeiliger\nText fuer den lieben Benutzer."; 
    147148 
     149  const char* texts[] = {"Dies", "ist", "ein", "kleiner", "Text."}; 
     150  std::copy(&texts[0], &texts[0] + 5, std::ostream_iterator<const char*>(RRLIB_LOG_STREAM(eLL_DEBUG), " ")); 
     151 
    148152  return EXIT_SUCCESS; 
    149153} 
Note: See TracChangeset for help on using the changeset viewer.