Skip to content

[BUG]: Errors in VS 2022 and c++ 20 #3824

@AhmedZero

Description

@AhmedZero

Required prerequisites

Problem description

when i build with pybind11, it failed to build
i use Visual Studio 2022 and C++ 20

##Errors

Severity	Code	Description	Project	File	Line	Suppression State
Error	C2678	binary '-': no operator found which takes a left-hand operand of type 'const L' (or there is no acceptable conversion)	VTIL-Python	J:\My_Projects\VTIL-Python\external\pybind11\include\pybind11\operators.h	115	
Error	C2672	'pybind11::class_<vtil::symbolic::directive::instance>::def': no matching overloaded function found	VTIL-Python	J:\My_Projects\VTIL-Python\external\pybind11\include\pybind11\operators.h	52	
Error	C2893	Failed to specialize function template 'pybind11::class_<vtil::symbolic::directive::instance> &pybind11::class_<vtil::symbolic::directive::instance>::def(const char *,Func &&,const Extra &...)'	VTIL-Python	J:\My_Projects\VTIL-Python\external\pybind11\include\pybind11\operators.h	47	
Error	C2678	binary '*': no operator found which takes a left-hand operand of type 'const L' (or there is no acceptable conversion)	VTIL-Python	J:\My_Projects\VTIL-Python\external\pybind11\include\pybind11\operators.h	117	
Error	C2088	'*': illegal for struct	VTIL-Python	J:\My_Projects\VTIL-Python\external\pybind11\include\pybind11\operators.h	117	

Reproducible example code

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions