Bugzilla – Full Text Bug Listing |
Summary: | Compilation error when manipulating with ns3::Time | ||
---|---|---|---|
Product: | ns-3 | Reporter: | Kirill Andreev <andreev> |
Component: | network | Assignee: | ns-bugs <ns-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | natale.patriciello, pdbarnes, tomh |
Priority: | P5 | ||
Version: | ns-3-dev | ||
Hardware: | All | ||
OS: | All | ||
See Also: | https://www.nsnam.org/bugzilla/show_bug.cgi?id=1856 |
Description
Kirill Andreev
2012-09-18 11:30:55 EDT
Sorry for the error message with russian words. ../scratch/time-example.cc: In function 'int main()': ../scratch/time-example.cc:9:24: error: ambiguous overload for 'operator*' in 't1 * 2' ../scratch/time-example.cc:9:24: note: candidates are: ./ns3/int64x64.h:73:1: note: ns3::int64x64_t ns3::operator*(const ns3::int64x64_t&, const ns3::int64x64_t&) ./ns3/int64x64.h:73:1: note: ns3::int64x64_t ns3::operator*(const ns3::int64x64_t&, double) ./ns3/int64x64.h:73:1: note: ns3::int64x64_t ns3::operator*(const ns3::int64x64_t&, signed char) ./ns3/int64x64.h:73:1: note: ns3::int64x64_t ns3::operator*(const ns3::int64x64_t&, short int) ./ns3/int64x64.h:73:1: note: ns3::int64x64_t ns3::operator*(const ns3::int64x64_t&, int) ./ns3/int64x64.h:73:1: note: ns3::int64x64_t ns3::operator*(const ns3::int64x64_t&, long int) ./ns3/int64x64.h:73:1: note: ns3::int64x64_t ns3::operator*(const ns3::int64x64_t&, long long int) ./ns3/int64x64.h:73:1: note: ns3::int64x64_t ns3::operator*(const ns3::int64x64_t&, unsigned char) ./ns3/int64x64.h:73:1: note: ns3::int64x64_t ns3::operator*(const ns3::int64x64_t&, short unsigned int) ./ns3/int64x64.h:73:1: note: ns3::int64x64_t ns3::operator*(const ns3::int64x64_t&, unsigned int) ./ns3/int64x64.h:73:1: note: ns3::int64x64_t ns3::operator*(const ns3::int64x64_t&, long unsigned int) ./ns3/int64x64.h:73:1: note: ns3::int64x64_t ns3::operator*(const ns3::int64x64_t&, long long unsigned int) ./ns3/data-rate.h:129:8: note: double ns3::operator*(const ns3::Time&, const ns3::DataRate&) I believe this has been fixed by: Bug 1856 Patch r10637 67601c471c22 http://code.nsnam.org/ns-3-dev/rev/67601c471c22 Kirill could you please confirm that this is fixed? Works for me, tested with ns 3.24 and ns-3-dev . Can be closed. |