Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ambiguous overload for ‘operator<<' Error. #289

Open
kafi350 opened this issue Aug 17, 2021 · 1 comment
Open

ambiguous overload for ‘operator<<' Error. #289

kafi350 opened this issue Aug 17, 2021 · 1 comment

Comments

@kafi350
Copy link

kafi350 commented Aug 17, 2021

I am facing this error after including vexcl. Even if i specify the backend it shows the error.
#include <vexcl/vexcl.hpp>

    ```

from /home/kafi/Documents/Projects/CODD-pro-lib_integration/main.cpp:14:
/usr/include/boost/date_time/date_generators.hpp: In member function ‘virtual std::string boost::date_time::nth_kday_of_month<date_type>::to_string() const’:
/usr/include/boost/date_time/date_generators.hpp:237:8: error: ambiguous overload for ‘operator<<’ (operand types are ‘std::basic_ostream’ and ‘int’)
236 | ss << 'M'
| ~~~~~~~~~
| |
| std::basic_ostream
237 | << static_cast(month_) << '.'
| ^~ ~~~~~~~~~~~~~~~~~~~~~~~~
| |
| int
In file included from /usr/include/c++/9/iterator:64,
from /usr/include/CL/cl.hpp:219,

@ddemidov
Copy link
Owner

I can not reproduce this with g++ 11. The following compiles for me:

#include <vexcl/vexcl.hpp>

int main() {
    std::cout << 'M' << std::endl;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants