# include <iostream>
#endif
-Ascii::Ascii(char c = '0'): caracter(c) {
+Ascii::Ascii(char c): caracter(c) {
#ifdef DEBUG
std::cerr << "En constructor de Ascii." << std::endl;
#endif
return caracter == ascii.caracter;
}
-short Ascii::operator short(void) {
+Ascii::operator char(void) const {
+#ifdef DEBUG
+ std::cerr << "En cast de Ascii a char." << std::endl;
+#endif
+ return static_cast<char>(caracter);
+}
+
+Ascii::operator short(void) const {
#ifdef DEBUG
std::cerr << "En cast de Ascii a short." << std::endl;
#endif