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)

arvrml.h (2.2 KB ) - added by soso@… 5 years ago.
Code to build

Download all attachments as: .zip

Change History (4)

by soso@…, 5 years ago

Attachment: arvrml.h added

Code to build

comment:1 by John Maddock, 5 years ago

Component: Noneiterator
Owner: set to jeffrey.hellrung
Reporter: changed from Roxana to Roxana

comment:2 by Michel Morin, 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 with boost::;
  • if you intend to call std::next, then qualify the call with std::.

comment:3 by Michel Morin, 5 years ago

Component: iteratorutility
Owner: changed from jeffrey.hellrung to Andrey Semashev
Note: See TracTickets for help on using tickets.