In het hoofdprogramma roep ik een functie aan binnen een try {}:
In m'n functions.h (die ik include in het hoofd programma) staat:
In functions.cpp staat:
De compiler blijft de volgende error code geven:
no match for call to `(std::string) (int)'
Ik heb geen idee hoe die bij (std::string) als return type komt?!
Wat ik ook verander aan de functie, hij blijft die error geven.. ook als ik van het return type std::string maak.
C++:
1
| try { smtpReply(atoi(replyCode)); } catch {... |
In m'n functions.h (die ik include in het hoofd programma) staat:
C++:
1
| void smtpReply(int replyCode); |
In functions.cpp staat:
C++:
1
| void smtpReply(int replyCode) { } |
De compiler blijft de volgende error code geven:
no match for call to `(std::string) (int)'
Ik heb geen idee hoe die bij (std::string) als return type komt?!
Wat ik ook verander aan de functie, hij blijft die error geven.. ook als ik van het return type std::string maak.