boost-ext / te

C++17 Run-time Polymorphism (Type Erasure) library
451 stars 38 forks source link

windows msvc2019 #30

Open yangxingpping opened 2 years ago

yangxingpping commented 2 years ago

Expected Behavior

Actual Behavior

example.cpp https://raw.githubusercontent.com/boost-experimental/te/master/include/boost/te.hpp(18): warning C4068: unknown pragma 'GCC' https://raw.githubusercontent.com/boost-experimental/te/master/include/boost/te.hpp(298): error C2062: type 'bool' unexpected https://raw.githubusercontent.com/boost-experimental/te/master/include/boost/te.hpp(298): error C2143: syntax error: missing ';' before '{' https://raw.githubusercontent.com/boost-experimental/te/master/include/boost/te.hpp(298): error C2447: '{': missing function header (old-style formal list?) https://raw.githubusercontent.com/boost-experimental/te/master/include/boost/te.hpp(304): error C2062: type 'bool' unexpected https://raw.githubusercontent.com/boost-experimental/te/master/include/boost/te.hpp(304): error C2143: syntax error: missing ';' before '{' https://raw.githubusercontent.com/boost-experimental/te/master/include/boost/te.hpp(304): error C2447: '{': missing function header (old-style formal list?) (18): error C3203: 'Drawable': unspecialized class template can't be used as a template argument for template parameter 'I', expected a real type (18): error C2039: 'draw': is not a member of 'boost::ext::te::v1::poly<int,boost::ext::te::v1::dynamic_storage,boost::ext::te::v1::static_vtable>' (18): note: see declaration of 'boost::ext::te::v1::poly<int,boost::ext::te::v1::dynamic_storage,boost::ext::te::v1::static_vtable>' (21): error C2641: cannot deduce template arguments for 'Circle' (22): error C2641: cannot deduce template arguments for 'Square'

Steps to Reproduce the Problem

1.https://godbolt.org/ 1. 1.

Specifications