J'ai un code qui ne compile pas à cause de l'erreur :Code:error: return type specified for `operator type'
Je sais pas comment corriger.Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14 class adder { std::wstring file; unsigned long int line; void* temp; public: adder(const std::string&, const unsigned long int &); const adder &operator+(void*); template<typename type> type operator type(void) const; };