Opened 5 years ago
Last modified 5 years ago
#13063 new Bugs
error C2668: 'boost::next' : ambiguous call to overloaded function
Reported by: | Roxana | Owned by: | Andrey Semashev |
---|---|---|---|
Milestone: | To Be Determined | Component: | utility |
Version: | Boost 1.63.0 | Severity: | Problem |
Keywords: | Cc: |
Description
Hello, I want to build the ARtoolkit libary ARvrml from the source with Visual Studio 2013 on Windows 10. When compiling the project 'ARvrml' I get the above mentionel error message : error C2668: 'boost::next' : ambiguous call to overloaded function Since I compile a premade library, I don't know how to help the problem. I use ARToolkit 5.3.2, the code is accessible here: https://github.com/artoolkit/artoolkit5 Furthermore I use the boost library provided by OpenVRML 0.16.6 (windows).
Thanks for your help, Best Regards, Roxana
Attachments (1)
Change History (4)
by , 5 years ago
comment:1 by , 5 years ago
Component: | None → iterator |
---|---|
Owner: | set to |
Reporter: | changed from | to
comment:2 by , 5 years ago
You need to describe:
- the function call where the ambiguity occurs
- the type of the argument (to the above function call)
The compiler version and the Boost version would be useful for us too.
That said, I guess that the error is caused by an unqualified call to next
(i.e. without any some_namespace::
qualification before next
).
Explicitly qualifying the call would resolve the problem:
- if you intend to call
boost::next
, then qualify the call withboost::
; - if you intend to call
std::next
, then qualify the call withstd::
.
comment:3 by , 5 years ago
Component: | iterator → utility |
---|---|
Owner: | changed from | to
Code to build