X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/aaf2ef477a8130dece4989e33ceb31706cb122de..205d7a7a1b84d22f885579108d6e0f015c1454a6:/misc.h diff --git a/misc.h b/misc.h index 84f3ca1..72d98ab 100644 --- a/misc.h +++ b/misc.h @@ -34,17 +34,10 @@ #endif /* Returns c-string "s" if n > 1, empty string "" otherwise. */ -#define ESSE(n) ((n) > 1 ? misc::str_esse : misc::str_nil) -namespace misc { +#define ESSE(n) (misc::str_esse + ((n) <= 1)) +namespace misc { extern const char str_esse[]; - extern const char str_nil[]; - - template - struct address: public std::unary_function { - T* operator()(T& ref) { return &ref; } - }; - } #endif // !MISC_H