OKlibrary  0.2.1.6
OKlib::Messages::demo::Message_3 Class Reference

Speaks english and german, both in basic level, and english also in full level : IMPOSSIBLE. More...

Inheritance diagram for OKlib::Messages::demo::Message_3:
OKlib::Messages::MessagesBase

List of all members.

Public Member Functions

void print (std::ostream &out, L< en_GB >, S< Basic >) const
void print (std::ostream &out, L< en_GB >, S< Full >) const

Detailed Description

Speaks english and german, both in basic level, and english also in full level : IMPOSSIBLE.

The problem here is that for example a request to print a message in language de_DE with level Full cannot be resolved: Shall it choose full english or basic german?! So we get a compilation error (an overload disambiguity).

In this case the class must provide german also in both levels (if at all).

Definition at line 34 of file demo_Messages_3.cpp.


Member Function Documentation

void OKlib::Messages::demo::Message_3::print ( std::ostream &  out,
L< en_GB >  ,
S< Basic >   
) const [inline]

Definition at line 37 of file demo_Messages_3.cpp.

void OKlib::Messages::demo::Message_3::print ( std::ostream &  out,
L< en_GB >  ,
S< Full >   
) const [inline]

Definition at line 40 of file demo_Messages_3.cpp.


The documentation for this class was generated from the following file: