A
Andrea Crotti
I'm cleaning up some code and I have in
Types.hpp:
typedef int64_t wf_simtime_t;
SemanticLog.hpp:
#include "Types.hpp"
....
class SemanticLog
{
private:
wf_simtime_t time;
SemanticLog.cpp:
....
void setTime()
{
time = 100;
// time = TIME();
}
(should be the second one but it gives the same strange error)
and now compiling I get a wonderful
src/SemanticLog.cpp: In function 'void setTime()':
src/SemanticLog.cpp:6:12: error: assignment of function 'time_t time(time_t*)'
src/SemanticLog.cpp:6:12: error: cannot convert 'int' to 'time_t(time_t*)throw ()' in assignment
Where the heck does that time comes from?
Actually everything was working perfectly passing the time from another
...class, but I don't really get this error here...
Types.hpp:
typedef int64_t wf_simtime_t;
SemanticLog.hpp:
#include "Types.hpp"
....
class SemanticLog
{
private:
wf_simtime_t time;
SemanticLog.cpp:
....
void setTime()
{
time = 100;
// time = TIME();
}
(should be the second one but it gives the same strange error)
and now compiling I get a wonderful
src/SemanticLog.cpp: In function 'void setTime()':
src/SemanticLog.cpp:6:12: error: assignment of function 'time_t time(time_t*)'
src/SemanticLog.cpp:6:12: error: cannot convert 'int' to 'time_t(time_t*)throw ()' in assignment
Where the heck does that time comes from?
Actually everything was working perfectly passing the time from another
...class, but I don't really get this error here...