boostorg / boostorg/utility

error C2676: Binary '+': 'T' does not define this operator or a conversion to an acceptable type for the predefined operator

Open
#97 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
C++
Stars
51
Forks
71
PR merge metrics
No merged PRs in 30d

Description

I have this error when i compile my project using boost 1_79_0:

error C2676: Binary '+': 'T' does not define this operator or a conversion to an acceptable type for the predefined operator in operators.hpp boost:

Here is the problem:

operators.hpp

template struct add_typeof_helper
{
BOOST_TYPEOF_NESTED_TYPEDEF_TPL(nested, (typeof_::make() + typeof_::make()))
typedef typename nested::type type;
};

I use visual studio 2017, language : C++ /std:c++latest

Thank you in advance for your comments !

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.