Re[8]: Получить сигнатуру из ламбды
От: Barbar1an Украина  
Дата: 13.08.20 10:03
Оценка:
Здравствуйте, YuriV, Вы писали:

YV>Ну запости лог без [ccode]aaa += FunctionSubscriber(AAA, 1);


  закоменчено //aaa += FunctionSubscriber(AAA, 1);
1>------ Build started: Project: Console, Configuration: Debug Win32 ------
1>Console.cpp
1>M:\Projects\Console\Console.cpp(59,33): error C2079: 'CActiveDelegate<std::remove_const<void (__thiscall A::AAA::<lambda_b40f81b86c19d3a041e4fe2a8702035f>::* )(std::string &) const>>::Function' uses undefined class 'fastdelegate::FastDelegate<S>'
1> with
1> [
1> S=std::remove_const<void (__thiscall A::AAA::<lambda_b40f81b86c19d3a041e4fe2a8702035f>::* )(std::string &) const>
1> ]
1>M:\Projects\Console\Console.cpp(79): message : see reference to class template instantiation 'CActiveDelegate<std::remove_const<void (__thiscall A::AAA::<lambda_b40f81b86c19d3a041e4fe2a8702035f>::* )(std::string &) const>>' being compiled
1>M:\Projects\Console\Console.cpp(137): message : see reference to function template instantiation 'auto CreateLambdaDelegate<A::AAA::<lambda_b40f81b86c19d3a041e4fe2a8702035f>>(L,int)' being compiled
1> with
1> [
1> L=A::AAA::<lambda_b40f81b86c19d3a041e4fe2a8702035f>
1> ]
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\include\functional(1093,19): error C2338: std::function does not accept non-function types as template arguments.
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\include\functional(1118): message : see reference to class template instantiation 'std::_Get_function_impl<_Fty>' being compiled
1> with
1> [
1> _Fty=std::remove_const<void (__thiscall A::AAA::<lambda_b40f81b86c19d3a041e4fe2a8702035f>::* )(std::string &) const>
1> ]
1>M:\Projects\Console\Console.cpp(60): message : see reference to class template instantiation 'std::function<S>' being compiled
1> with
1> [
1> S=std::remove_const<void (__thiscall A::AAA::<lambda_b40f81b86c19d3a041e4fe2a8702035f>::* )(std::string &) const>
1> ]
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\include\functional(1118,51): error C2039: 'type': is not a member of 'std::_Get_function_impl<_Fty>'
1> with
1> [
1> _Fty=std::remove_const<void (__thiscall A::AAA::<lambda_b40f81b86c19d3a041e4fe2a8702035f>::* )(std::string &) const>
1> ]
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\include\functional(1118): message : see declaration of 'std::_Get_function_impl<_Fty>'
1> with
1> [
1> _Fty=std::remove_const<void (__thiscall A::AAA::<lambda_b40f81b86c19d3a041e4fe2a8702035f>::* )(std::string &) const>
1> ]
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\include\functional(1118,56): error C2504: 'type': base class undefined
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\include\functional(1120,56): error C2039: 'type': is not a member of 'std::_Get_function_impl<_Fty>'
1> with
1> [
1> _Fty=std::remove_const<void (__thiscall A::AAA::<lambda_b40f81b86c19d3a041e4fe2a8702035f>::* )(std::string &) const>
1> ]
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\include\functional(1118): message : see declaration of 'std::_Get_function_impl<_Fty>'
1> with
1> [
1> _Fty=std::remove_const<void (__thiscall A::AAA::<lambda_b40f81b86c19d3a041e4fe2a8702035f>::* )(std::string &) const>
1> ]
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\include\functional(1120,1): error C2061: syntax error: identifier 'type'
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\include\functional(1132,1): error C2653: '_Mybase': is not a class or namespace name
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\include\functional(1132,1): error C4430: missing type specifier — int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\include\functional(1153,1): error C2653: '_Mybase': is not a class or namespace name
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\include\functional(1153,1): error C4430: missing type specifier — int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\include\functional(1187,1): error C2653: '_Mybase': is not a class or namespace name
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\include\functional(1187,1): error C4430: missing type specifier — int assumed. Note: C++ does not support default-int
1>M:\Projects\Console\Console.cpp(80,1): error C2679: binary '=': no operator found which takes a right-hand operand of type 'L' (or there is no acceptable conversion)
1> with
1> [
1> L=A::AAA::<lambda_b40f81b86c19d3a041e4fe2a8702035f>
1> ]
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\include\functional(1203,15): message : could be 'std::function<S> &std::function<S>::operator =(std::nullptr_t) noexcept'
1> with
1> [
1> S=std::remove_const<void (__thiscall A::AAA::<lambda_b40f81b86c19d3a041e4fe2a8702035f>::* )(std::string &) const>
1> ]
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\include\functional(1178,15): message : or 'std::function<S> &std::function<S>::operator =(std::function<S> &&) noexcept'
1> with
1> [
1> S=std::remove_const<void (__thiscall A::AAA::<lambda_b40f81b86c19d3a041e4fe2a8702035f>::* )(std::string &) const>
1> ]
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\include\functional(1162,15): message : or 'std::function<S> &std::function<S>::operator =(const std::function<S> &)'
1> with
1> [
1> S=std::remove_const<void (__thiscall A::AAA::<lambda_b40f81b86c19d3a041e4fe2a8702035f>::* )(std::string &) const>
1> ]
1>M:\Projects\Console\Console.cpp(80,1): message : while trying to match the argument list '(std::function<S>, L)'
1> with
1> [
1> S=std::remove_const<void (__thiscall A::AAA::<lambda_b40f81b86c19d3a041e4fe2a8702035f>::* )(std::string &) const>
1> ]
1> and
1> [
1> L=A::AAA::<lambda_b40f81b86c19d3a041e4fe2a8702035f>
1> ]
1>M:\Projects\Console\Console.cpp(137,1): error C2679: binary '+=': no operator found which takes a right-hand operand of type 'CActiveDelegate<std::remove_const<void (__thiscall A::AAA::<lambda_b40f81b86c19d3a041e4fe2a8702035f>::* )(std::string &) const>>' (or there is no acceptable conversion)
1>M:\Projects\Console\Console.cpp(91,9): message : could be 'void CActiveEvent<std::string &>::operator +=(CActiveDelegate<void (std::string &)> &)'
1>M:\Projects\Console\Console.cpp(137,1): message : while trying to match the argument list '(CActiveEvent<std::string &>, CActiveDelegate<std::remove_const<void (__thiscall A::AAA::<lambda_b40f81b86c19d3a041e4fe2a8702035f>::* )(std::string &) const>>)'
1>Done building project "Console.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Я изъездил эту страну вдоль и поперек, общался с умнейшими людьми и я могу вам ручаться в том, что обработка данных является лишь причудой, мода на которую продержится не более года. (с) Эксперт, авторитет и профессионал из 1957 г.
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.