I pulled down the newest code and tried to compile with MSVC 2022. There does not seem to be a VS2022 make target:

Quote
[MINGW64] C:\Users\stuar\Documents\mame-ai>make vs2022 PYTHON_EXECUTABLE=c:/Users/stuar/Documents/msys64/mingw64/bin/python.exe MODERN_WIN_API=1 NOWERROR=1 NO_USE_PORTAUDIO=1
GCC 12.1.0 detected
fatal: No names found, cannot describe anything.
make: *** No rule to make target 'vs2022'. Stop.

But, if I use the MSVS 2019 make target (make vs2019), but actually open the project with MSVS 2022, the projects were automatically update by MSVC. I still get the many of the same errors.

Is there a "real" vs2022 target?

Do I need to explicitly set the C++ language version (i.e. C++17? C++20?)?

Am I doing something wrong here?

I'll probably just comment out the problematic code and move on, but if anyone is interested, the errors are below.

Thank you!

Quote
<SNIP>
2>C:\Users\stuar\Documents\mame-ai\src\mame\sinclair\atm.cpp(355,52): error C2666: '+': 2 overloads have similar conversions
2>C:\Users\stuar\Documents\mame-ai\src\mame\sinclair\atm.cpp(355,52): error C2666: u8 chunk = *(m_char_rom + (*symb_location << 3) + (y & 0x07));
2>C:\Users\stuar\Documents\mame-ai\src\mame\sinclair\atm.cpp(355,52): error C2666: ^
2>C:\Users\stuar\Documents\mame-ai\src\emu\attotime.h(183,27): message : could be 'attotime operator +(const attotime &,const attotime &) noexcept'
2>C:\Users\stuar\Documents\mame-ai\src\emu\attotime.h(183,27): message : inline constexpr attotime operator+(const attotime &left, const attotime &right) noexcept
2>C:\Users\stuar\Documents\mame-ai\src\emu\attotime.h(183,27): message : ^
2>C:\Users\stuar\Documents\mame-ai\src\mame\sinclair\atm.cpp(355,52): message : or 'built-in C++ operator+(bool, int)'
2>C:\Users\stuar\Documents\mame-ai\src\mame\sinclair\atm.cpp(355,52): message : u8 chunk = *(m_char_rom + (*symb_location << 3) + (y & 0x07));
2>C:\Users\stuar\Documents\mame-ai\src\mame\sinclair\atm.cpp(355,52): message : ^
2>C:\Users\stuar\Documents\mame-ai\src\mame\sinclair\atm.cpp(355,52): message : or 'built-in C++ operator+(ObjectClass, __int64)'
2>C:\Users\stuar\Documents\mame-ai\src\mame\sinclair\atm.cpp(355,52): message : with
2>C:\Users\stuar\Documents\mame-ai\src\mame\sinclair\atm.cpp(355,52): message : [
2>C:\Users\stuar\Documents\mame-ai\src\mame\sinclair\atm.cpp(355,52): message : ObjectClass=osd::u8
2>C:\Users\stuar\Documents\mame-ai\src\mame\sinclair\atm.cpp(355,52): message : ]
2>C:\Users\stuar\Documents\mame-ai\src\mame\sinclair\atm.cpp(355,52): message : u8 chunk = *(m_char_rom + (*symb_location << 3) + (y & 0x07));
2>C:\Users\stuar\Documents\mame-ai\src\mame\sinclair\atm.cpp(355,52): message : ^
2>C:\Users\stuar\Documents\mame-ai\src\mame\sinclair\atm.cpp(355,52): message : while trying to match the argument list '(region_ptr_finder<osd::u8,false>, int)'
2>C:\Users\stuar\Documents\mame-ai\src\mame\sinclair\atm.cpp(355,52): message : u8 chunk = *(m_char_rom + (*symb_location << 3) + (y & 0x07));
2>C:\Users\stuar\Documents\mame-ai\src\mame\sinclair\atm.cpp(355,52): message :
<SNIP>
5>C:\Users\stuar\Documents\mame-ai\src\devices\machine\ldv4200hle.cpp(804,8): error C2668: 'signbit': ambiguous call to overloaded function
5>C:\Users\stuar\Documents\mame-ai\src\devices\machine\ldv4200hle.cpp(804,8): error C2668: if (curr_delta == 0 || std::signbit(old_delta) != std::signbit(curr_delta))
5>C:\Users\stuar\Documents\mame-ai\src\devices\machine\ldv4200hle.cpp(804,8): error C2668: ^
5>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\corecrt_math.h(309,32): message : could be 'bool signbit(float) noexcept'
5>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\corecrt_math.h(309,32): message : _Check_return_ inline bool signbit(_In_ float _X) throw()
5>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\corecrt_math.h(309,32): message : ^
5>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\corecrt_math.h(314,32): message : or 'bool signbit(double) noexcept'
5>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\corecrt_math.h(314,32): message : _Check_return_ inline bool signbit(_In_ double _X) throw()
5>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\corecrt_math.h(314,32): message : ^
5>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\corecrt_math.h(319,32): message : or 'bool signbit(long double) noexcept'
5>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\corecrt_math.h(319,32): message : _Check_return_ inline bool signbit(_In_ long double _X) throw()
5>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\corecrt_math.h(319,32): message : ^
5>C:\Users\stuar\Documents\mame-ai\src\devices\machine\ldv4200hle.cpp(804,8): message : while trying to match the argument list '(int32_t)'
5>C:\Users\stuar\Documents\mame-ai\src\devices\machine\ldv4200hle.cpp(804,8): message : if (curr_delta == 0 || std::signbit(old_delta) != std::signbit(curr_delta))
5>C:\Users\stuar\Documents\mame-ai\src\devices\machine\ldv4200hle.cpp(804,8): message : ^
5>C:\Users\stuar\Documents\mame-ai\src\devices\machine\ldv4200hle.cpp(922,7): error C2668: 'signbit': ambiguous call to overloaded function
5>C:\Users\stuar\Documents\mame-ai\src\devices\machine\ldv4200hle.cpp(922,7): error C2668: if (std::signbit(curr_delta) != std::signbit(next_delta))
5>C:\Users\stuar\Documents\mame-ai\src\devices\machine\ldv4200hle.cpp(922,7): error C2668: ^
5>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\corecrt_math.h(309,32): message : could be 'bool signbit(float) noexcept'
5>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\corecrt_math.h(309,32): message : _Check_return_ inline bool signbit(_In_ float _X) throw()
5>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\corecrt_math.h(309,32): message : ^
5>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\corecrt_math.h(314,32): message : or 'bool signbit(double) noexcept'
5>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\corecrt_math.h(314,32): message : _Check_return_ inline bool signbit(_In_ double _X) throw()
5>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\corecrt_math.h(314,32): message : ^
5>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\corecrt_math.h(319,32): message : or 'bool signbit(long double) noexcept'
5>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\corecrt_math.h(319,32): message : _Check_return_ inline bool signbit(_In_ long double _X) throw()
5>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22000.0\ucrt\corecrt_math.h(319,32): message : ^
5>C:\Users\stuar\Documents\mame-ai\src\devices\machine\ldv4200hle.cpp(922,7): message : while trying to match the argument list '(int32_t)'
5>C:\Users\stuar\Documents\mame-ai\src\devices\machine\ldv4200hle.cpp(922,7): message : if (std::signbit(curr_delta) != std::signbit(next_delta))
5>C:\Users\stuar\Documents\mame-ai\src\devices\machine\ldv4200hle.cpp(922,7): message : ^
<SNIP>
1>C:\Users\stuar\Documents\mame-ai\src\mame\sony\news_r4k.cpp(447,73): error C2672: 'devcb_write<int,1>::binder::set': no matching overloaded function found
1>C:\Users\stuar\Documents\mame-ai\src\mame\sony\news_r4k.cpp(447,73): error C2672: m_sonic3->irq_out().set(FUNC(news_r4k_state::irq_w<irq0_number::SONIC>));
1>C:\Users\stuar\Documents\mame-ai\src\mame\sony\news_r4k.cpp(447,73): error C2672: ^
1>C:\Users\stuar\Documents\mame-ai\src\emu\devcb.h(2104,87): message : could be 'enable_if<devcb_write_base::is_write_method<T,void>::value,devcb_write<int,1>::delegate_builder<rw_delegate_type<T,void>::type>>::type devcb_write<int,1>::binder::set(const device_finder<U,R> &,T &&,const char *)'
1>C:\Users\stuar\Documents\mame-ai\src\emu\devcb.h(2104,87): message : std::enable_if_t<is_write_method<T>::value, delegate_builder<delegate_type_t<T> > > set(device_finder<U, R> const &finder, T &&func, char const *name)
1>C:\Users\stuar\Documents\mame-ai\src\emu\devcb.h(2104,87): message : ^
1>C:\Users\stuar\Documents\mame-ai\src\mame\sony\news_r4k.cpp(447,21): message : 'enable_if<devcb_write_base::is_write_method<T,void>::value,devcb_write<int,1>::delegate_builder<rw_delegate_type<T,void>::type>>::type devcb_write<int,1>::binder::set(const device_finder<U,R> &,T &&,const char *)': expects 3 arguments - 2 provided
1>C:\Users\stuar\Documents\mame-ai\src\mame\sony\news_r4k.cpp(447,21): message : m_sonic3->irq_out().set(FUNC(news_r4k_state::irq_w<irq0_number::SONIC>));
1>C:\Users\stuar\Documents\mame-ai\src\mame\sony\news_r4k.cpp(447,21): message : ^
1>C:\Users\stuar\Documents\mame-ai\src\emu\devcb.h(2104): message : see declaration of 'devcb_write<int,1>::binder::set'
1>C:\Users\stuar\Documents\mame-ai\src\emu\devcb.h(2104): message : std::enable_if_t<is_write_method<T>::value, delegate_builder<delegate_type_t<T> > > set(device_finder<U, R> const &finder, T &&func, char const *name)
1>C:\Users\stuar\Documents\mame-ai\src\emu\devcb.h(2096,87): message : or 'enable_if<devcb_write_base::is_write_method<T,void>::value,devcb_write<int,1>::delegate_builder<rw_delegate_type<T,void>::type>>::type devcb_write<int,1>::binder::set(device_finder<U,R> &,T &&,const char *)'
1>C:\Users\stuar\Documents\mame-ai\src\emu\devcb.h(2096,87): message : std::enable_if_t<is_write_method<T>::value, delegate_builder<delegate_type_t<T> > > set(device_finder<U, R> &finder, T &&func, char const *name)
1>C:\Users\stuar\Documents\mame-ai\src\emu\devcb.h(2096,87): message : ^
1>C:\Users\stuar\Documents\mame-ai\src\mame\sony\news_r4k.cpp(447,21): message : 'enable_if<devcb_write_base::is_write_method<T,void>::value,devcb_write<int,1>::delegate_builder<rw_delegate_type<T,void>::type>>::type devcb_write<int,1>::binder::set(device_finder<U,R> &,T &&,const char *)': expects 3 arguments - 2 provided
1>C:\Users\stuar\Documents\mame-ai\src\mame\sony\news_r4k.cpp(447,21): message : m_sonic3->irq_out().set(FUNC(news_r4k_state::irq_w<irq0_number::SONIC>));
1>C:\Users\stuar\Documents\mame-ai\src\mame\sony\news_r4k.cpp(447,21): message : ^
1>C:\Users\stuar\Documents\mame-ai\src\emu\devcb.h(2096): message : see declaration of 'devcb_write<int,1>::binder::set'
1>C:\Users\stuar\Documents\mame-ai\src\emu\devcb.h(2096): message : std::enable_if_t<is_write_method<T>::value, delegate_builder<delegate_type_t<T> > > set(device_finder<U, R> &finder, T &&func, char const *name)
1>C:\Users\stuar\Documents\mame-ai\src\emu\devcb.h(2089,87): message : or 'enable_if<devcb_write_base::is_write_method<T,void>::value,devcb_write<int,1>::delegate_builder<rw_delegate_type<T,void>::type>>::type devcb_write<int,1>::binder::set(U &,T &&,const char *)'
1>C:\Users\stuar\Documents\mame-ai\src\emu\devcb.h(2089,87): message : std::enable_if_t<is_write_method<T>::value, delegate_builder<delegate_type_t<T> > > set(U &obj, T &&func, char const *name)
1>C:\Users\stuar\Documents\mame-ai\src\emu\devcb.h(2089,87): message : ^
1>C:\Users\stuar\Documents\mame-ai\src\mame\sony\news_r4k.cpp(447,21): message : 'enable_if<devcb_write_base::is_write_method<T,void>::value,devcb_write<int,1>::delegate_builder<rw_delegate_type<T,void>::type>>::type devcb_write<int,1>::binder::set(U &,T &&,const char *)': expects 3 arguments - 2 provided
1>C:\Users\stuar\Documents\mame-ai\src\mame\sony\news_r4k.cpp(447,21): message : m_sonic3->irq_out().set(FUNC(news_r4k_state::irq_w<irq0_number::SONIC>));
1>C:\Users\stuar\Documents\mame-ai\src\mame\sony\news_r4k.cpp(447,21): message : ^
1>C:\Users\stuar\Documents\mame-ai\src\emu\devcb.h(2089): message : see declaration of 'devcb_write<int,1>::binder::set'
1>C:\Users\stuar\Documents\mame-ai\src\emu\devcb.h(2089): message : std::enable_if_t<is_write_method<T>::value, delegate_builder<delegate_type_t<T> > > set(U &obj, T &&func, char const *name)
1>C:\Users\stuar\Documents\mame-ai\src\emu\devcb.h(2082,87): message : or 'enable_if<devcb_write_base::is_write_method<T,void>::value,devcb_write<int,1>::delegate_builder<rw_delegate_type<T,void>::type>>::type devcb_write<int,1>::binder::set(const char *,T &&,const char *)'
1>C:\Users\stuar\Documents\mame-ai\src\emu\devcb.h(2082,87): message : std::enable_if_t<is_write_method<T>::value, delegate_builder<delegate_type_t<T> > > set(char const *tag, T &&func, char const *name)
1>C:\Users\stuar\Documents\mame-ai\src\emu\devcb.h(2082,87): message : ^
1>C:\Users\stuar\Documents\mame-ai\src\mame\sony\news_r4k.cpp(447,21): message : 'enable_if<devcb_write_base::is_write_method<T,void>::value,devcb_write<int,1>::delegate_builder<rw_delegate_type<T,void>::type>>::type devcb_write<int,1>::binder::set(const char *,T &&,const char *)': expects 3 arguments - 2 provided
1>C:\Users\stuar\Documents\mame-ai\src\mame\sony\news_r4k.cpp(447,21): message : m_sonic3->irq_out().set(FUNC(news_r4k_state::irq_w<irq0_number::SONIC>));
1>C:\Users\stuar\Documents\mame-ai\src\mame\sony\news_r4k.cpp(447,21): message : ^
1>C:\Users\stuar\Documents\mame-ai\src\emu\devcb.h(2082): message : see declaration of 'devcb_write<int,1>::binder::set'
1>C:\Users\stuar\Documents\mame-ai\src\emu\devcb.h(2082): message : std::enable_if_t<is_write_method<T>::value, delegate_builder<delegate_type_t<T> > > set(char const *tag, T &&func, char const *name)
1>C:\Users\stuar\Documents\mame-ai\src\emu\devcb.h(2075,87): message : or 'enable_if<devcb_write_base::is_write_method<T,void>::value,devcb_write<int,1>::delegate_builder<rw_delegate_type<T,void>::type>>::type devcb_write<int,1>::binder::set(T &&,const char *)'
1>C:\Users\stuar\Documents\mame-ai\src\emu\devcb.h(2075,87): message : std::enable_if_t<is_write_method<T>::value, delegate_builder<delegate_type_t<T> > > set(T &&func, char const *name)
1>C:\Users\stuar\Documents\mame-ai\src\emu\devcb.h(2075,87): message : ^
1>C:\Users\stuar\Documents\mame-ai\src\mame\sony\news_r4k.cpp(447): message : 'enable_if<devcb_write_base::is_write_method<T,void>::value,devcb_write<int,1>::delegate_builder<rw_delegate_type<T,void>::type>>::type devcb_write<int,1>::binder::set(T &&,const char *)': could not deduce template argument for 'T'
1>C:\Users\stuar\Documents\mame-ai\src\mame\sony\news_r4k.cpp(447): message : m_sonic3->irq_out().set(FUNC(news_r4k_state::irq_w<irq0_number::SONIC>));
1>C:\Users\stuar\Documents\mame-ai\src\emu\devcb.h(2075): message : see declaration of 'devcb_write<int,1>::binder::set'
1>C:\Users\stuar\Documents\mame-ai\src\emu\devcb.h(2075): message : std::enable_if_t<is_write_method<T>::value, delegate_builder<delegate_type_t<T> > > set(T &&func, char const *name)
1>C:\Users\stuar\Documents\mame-ai\src\emu\devcb.h(2068,95): message : or 'enable_if<std::integral_constant<bool,std::is_invocable<T,offs_t,Input,unsigned int>::value||std::is_invocable<T,offs_t,Input>::value||std::is_invocable<T,Input>::value>::value,devcb_write<Input,1>::functoid_builder<remove_reference<_Uty>::type>>::type devcb_write<Input,1>::binder::set(T &&)'
1>C:\Users\stuar\Documents\mame-ai\src\emu\devcb.h(2068,95): message : with
1>C:\Users\stuar\Documents\mame-ai\src\emu\devcb.h(2068,95): message : [
1>C:\Users\stuar\Documents\mame-ai\src\emu\devcb.h(2068,95): message : Input=int
1>C:\Users\stuar\Documents\mame-ai\src\emu\devcb.h(2068,95): message : ]
1>C:\Users\stuar\Documents\mame-ai\src\emu\devcb.h(2068,95): message : std::enable_if_t<is_write<Input, T>::value, functoid_builder<std::remove_reference_t<T> > > set(T &&cb)
1>C:\Users\stuar\Documents\mame-ai\src\emu\devcb.h(2068,95): message : ^
1>C:\Users\stuar\Documents\mame-ai\src\mame\sony\news_r4k.cpp(447,21): message : 'enable_if<std::integral_constant<bool,std::is_invocable<T,offs_t,Input,unsigned int>::value||std::is_invocable<T,offs_t,Input>::value||std::is_invocable<T,Input>::value>::value,devcb_write<Input,1>::functoid_builder<remove_reference<_Uty>::type>>::type devcb_write<Input,1>::binder::set(T &&)': expects 1 arguments - 2 provided
1>C:\Users\stuar\Documents\mame-ai\src\mame\sony\news_r4k.cpp(447,21): message : with
1>C:\Users\stuar\Documents\mame-ai\src\mame\sony\news_r4k.cpp(447,21): message : [
1>C:\Users\stuar\Documents\mame-ai\src\mame\sony\news_r4k.cpp(447,21): message : Input=int
1>C:\Users\stuar\Documents\mame-ai\src\mame\sony\news_r4k.cpp(447,21): message : ]
1>C:\Users\stuar\Documents\mame-ai\src\mame\sony\news_r4k.cpp(447,21): message : m_sonic3->irq_out().set(FUNC(news_r4k_state::irq_w<irq0_number::SONIC>));
1>C:\Users\stuar\Documents\mame-ai\src\mame\sony\news_r4k.cpp(447,21): message : ^
1>C:\Users\stuar\Documents\mame-ai\src\emu\devcb.h(2068): message : see declaration of 'devcb_write<int,1>::binder::set'
1>C:\Users\stuar\Documents\mame-ai\src\emu\devcb.h(2068): message : std::enable_if_t<is_write<Input, T>::value, functoid_builder<std::remove_reference_t<T> > > set(T &&cb)
1>C:\Users\stuar\Documents\mame-ai\src\mame\sony\news_r4k.cpp(482,57): error C2672: 'devcb_write<int,1>::binder::set': no matching overloaded function found
1>C:\Users\stuar\Documents\mame-ai\src\mame\sony\news_r4k.cpp(482,57): error C2672: m_dmac->irq_out().set(FUNC(news_r4k_state::irq_w<DMAC>));
1>C:\Users\stuar\Documents\mame-ai\src\mame\sony\news_r4k.cpp(482,57): error C2672: ^
1>C:\Users\stuar\Documents\mame-ai\src\emu\devcb.h(2104,87): message : could be 'enable_if<devcb_write_base::is_write_method<T,void>::value,devcb_write<int,1>::delegate_builder<rw_delegate_type<T,void>::type>>::type devcb_write<int,1>::binder::set(const device_finder<U,R> &,T &&,const char *)'
1>C:\Users\stuar\Documents\mame-ai\src\emu\devcb.h(2104,87): message : std::enable_if_t<is_write_method<T>::value, delegate_builder<delegate_type_t<T> > > set(device_finder<U, R> const &finder, T &&func, char const *name)
1>C:\Users\stuar\Documents\mame-ai\src\emu\devcb.h(2104,87): message : ^
1>C:\Users\stuar\Documents\mame-ai\src\mame\sony\news_r4k.cpp(482,19): message : 'enable_if<devcb_write_base::is_write_method<T,void>::value,devcb_write<int,1>::delegate_builder<rw_delegate_type<T,void>::type>>::type devcb_write<int,1>::binder::set(const device_finder<U,R> &,T &&,const char *)': expects 3 arguments - 2 provided
1>C:\Users\stuar\Documents\mame-ai\src\mame\sony\news_r4k.cpp(482,19): message : m_dmac->irq_out().set(FUNC(news_r4k_state::irq_w<DMAC>));
1>C:\Users\stuar\Documents\mame-ai\src\mame\sony\news_r4k.cpp(482,19): message : ^
1>C:\Users\stuar\Documents\mame-ai\src\emu\devcb.h(2104): message : see declaration of 'devcb_write<int,1>::binder::set'
1>C:\Users\stuar\Documents\mame-ai\src\emu\devcb.h(2104): message : std::enable_if_t<is_write_method<T>::value, delegate_builder<delegate_type_t<T> > > set(device_finder<U, R> const &finder, T &&func, char const *name)
1>C:\Users\stuar\Documents\mame-ai\src\emu\devcb.h(2096,87): message : or 'enable_if<devcb_write_base::is_write_method<T,void>::value,devcb_write<int,1>::delegate_builder<rw_delegate_type<T,void>::type>>::type devcb_write<int,1>::binder::set(device_finder<U,R> &,T &&,const char *)'
1>C:\Users\stuar\Documents\mame-ai\src\emu\devcb.h(2096,87): message : std::enable_if_t<is_write_method<T>::value, delegate_builder<delegate_type_t<T> > > set(device_finder<U, R> &finder, T &&func, char const *name)
1>C:\Users\stuar\Documents\mame-ai\src\emu\devcb.h(2096,87): message : ^
1>C:\Users\stuar\Documents\mame-ai\src\mame\sony\news_r4k.cpp(482,19): message : 'enable_if<devcb_write_base::is_write_method<T,void>::value,devcb_write<int,1>::delegate_builder<rw_delegate_type<T,void>::type>>::type devcb_write<int,1>::binder::set(device_finder<U,R> &,T &&,const char *)': expects 3 arguments - 2 provided
1>C:\Users\stuar\Documents\mame-ai\src\mame\sony\news_r4k.cpp(482,19): message : m_dmac->irq_out().set(FUNC(news_r4k_state::irq_w<DMAC>));
1>C:\Users\stuar\Documents\mame-ai\src\mame\sony\news_r4k.cpp(482,19): message : ^
1>C:\Users\stuar\Documents\mame-ai\src\emu\devcb.h(2096): message : see declaration of 'devcb_write<int,1>::binder::set'
1>C:\Users\stuar\Documents\mame-ai\src\emu\devcb.h(2096): message : std::enable_if_t<is_write_method<T>::value, delegate_builder<delegate_type_t<T> > > set(device_finder<U, R> &finder, T &&func, char const *name)
1>C:\Users\stuar\Documents\mame-ai\src\emu\devcb.h(2089,87): message : or 'enable_if<devcb_write_base::is_write_method<T,void>::value,devcb_write<int,1>::delegate_builder<rw_delegate_type<T,void>::type>>::type devcb_write<int,1>::binder::set(U &,T &&,const char *)'
1>C:\Users\stuar\Documents\mame-ai\src\emu\devcb.h(2089,87): message : std::enable_if_t<is_write_method<T>::value, delegate_builder<delegate_type_t<T> > > set(U &obj, T &&func, char const *name)
1>C:\Users\stuar\Documents\mame-ai\src\emu\devcb.h(2089,87): message : ^
1>C:\Users\stuar\Documents\mame-ai\src\mame\sony\news_r4k.cpp(482,19): message : 'enable_if<devcb_write_base::is_write_method<T,void>::value,devcb_write<int,1>::delegate_builder<rw_delegate_type<T,void>::type>>::type devcb_write<int,1>::binder::set(U &,T &&,const char *)': expects 3 arguments - 2 provided
1>C:\Users\stuar\Documents\mame-ai\src\mame\sony\news_r4k.cpp(482,19): message : m_dmac->irq_out().set(FUNC(news_r4k_state::irq_w<DMAC>));
1>C:\Users\stuar\Documents\mame-ai\src\mame\sony\news_r4k.cpp(482,19): message : ^
1>C:\Users\stuar\Documents\mame-ai\src\emu\devcb.h(2089): message : see declaration of 'devcb_write<int,1>::binder::set'
1>C:\Users\stuar\Documents\mame-ai\src\emu\devcb.h(2089): message : std::enable_if_t<is_write_method<T>::value, delegate_builder<delegate_type_t<T> > > set(U &obj, T &&func, char const *name)
1>C:\Users\stuar\Documents\mame-ai\src\emu\devcb.h(2082,87): message : or 'enable_if<devcb_write_base::is_write_method<T,void>::value,devcb_write<int,1>::delegate_builder<rw_delegate_type<T,void>::type>>::type devcb_write<int,1>::binder::set(const char *,T &&,const char *)'
1>C:\Users\stuar\Documents\mame-ai\src\emu\devcb.h(2082,87): message : std::enable_if_t<is_write_method<T>::value, delegate_builder<delegate_type_t<T> > > set(char const *tag, T &&func, char const *name)
1>C:\Users\stuar\Documents\mame-ai\src\emu\devcb.h(2082,87): message : ^
1>C:\Users\stuar\Documents\mame-ai\src\mame\sony\news_r4k.cpp(482,19): message : 'enable_if<devcb_write_base::is_write_method<T,void>::value,devcb_write<int,1>::delegate_builder<rw_delegate_type<T,void>::type>>::type devcb_write<int,1>::binder::set(const char *,T &&,const char *)': expects 3 arguments - 2 provided
1>C:\Users\stuar\Documents\mame-ai\src\mame\sony\news_r4k.cpp(482,19): message : m_dmac->irq_out().set(FUNC(news_r4k_state::irq_w<DMAC>));
1>C:\Users\stuar\Documents\mame-ai\src\mame\sony\news_r4k.cpp(482,19): message : ^
1>C:\Users\stuar\Documents\mame-ai\src\emu\devcb.h(2082): message : see declaration of 'devcb_write<int,1>::binder::set'
1>C:\Users\stuar\Documents\mame-ai\src\emu\devcb.h(2082): message : std::enable_if_t<is_write_method<T>::value, delegate_builder<delegate_type_t<T> > > set(char const *tag, T &&func, char const *name)
1>C:\Users\stuar\Documents\mame-ai\src\emu\devcb.h(2075,87): message : or 'enable_if<devcb_write_base::is_write_method<T,void>::value,devcb_write<int,1>::delegate_builder<rw_delegate_type<T,void>::type>>::type devcb_write<int,1>::binder::set(T &&,const char *)'
1>C:\Users\stuar\Documents\mame-ai\src\emu\devcb.h(2075,87): message : std::enable_if_t<is_write_method<T>::value, delegate_builder<delegate_type_t<T> > > set(T &&func, char const *name)
1>C:\Users\stuar\Documents\mame-ai\src\emu\devcb.h(2075,87): message : ^
1>C:\Users\stuar\Documents\mame-ai\src\mame\sony\news_r4k.cpp(482): message : 'enable_if<devcb_write_base::is_write_method<T,void>::value,devcb_write<int,1>::delegate_builder<rw_delegate_type<T,void>::type>>::type devcb_write<int,1>::binder::set(T &&,const char *)': could not deduce template argument for 'T'
1>C:\Users\stuar\Documents\mame-ai\src\mame\sony\news_r4k.cpp(482): message : m_dmac->irq_out().set(FUNC(news_r4k_state::irq_w<DMAC>));
1>C:\Users\stuar\Documents\mame-ai\src\emu\devcb.h(2075): message : see declaration of 'devcb_write<int,1>::binder::set'
1>C:\Users\stuar\Documents\mame-ai\src\emu\devcb.h(2075): message : std::enable_if_t<is_write_method<T>::value, delegate_builder<delegate_type_t<T> > > set(T &&func, char const *name)
1>C:\Users\stuar\Documents\mame-ai\src\emu\devcb.h(2068,95): message : or 'enable_if<std::integral_constant<bool,std::is_invocable<T,offs_t,Input,unsigned int>::value||std::is_invocable<T,offs_t,Input>::value||std::is_invocable<T,Input>::value>::value,devcb_write<Input,1>::functoid_builder<remove_reference<_Uty>::type>>::type devcb_write<Input,1>::binder::set(T &&)'
1>C:\Users\stuar\Documents\mame-ai\src\emu\devcb.h(2068,95): message : with
1>C:\Users\stuar\Documents\mame-ai\src\emu\devcb.h(2068,95): message : [
1>C:\Users\stuar\Documents\mame-ai\src\emu\devcb.h(2068,95): message : Input=int
1>C:\Users\stuar\Documents\mame-ai\src\emu\devcb.h(2068,95): message : ]
1>C:\Users\stuar\Documents\mame-ai\src\emu\devcb.h(2068,95): message : std::enable_if_t<is_write<Input, T>::value, functoid_builder<std::remove_reference_t<T> > > set(T &&cb)
1>C:\Users\stuar\Documents\mame-ai\src\emu\devcb.h(2068,95): message : ^
1>C:\Users\stuar\Documents\mame-ai\src\mame\sony\news_r4k.cpp(482,19): message : 'enable_if<std::integral_constant<bool,std::is_invocable<T,offs_t,Input,unsigned int>::value||std::is_invocable<T,offs_t,Input>::value||std::is_invocable<T,Input>::value>::value,devcb_write<Input,1>::functoid_builder<remove_reference<_Uty>::type>>::type devcb_write<Input,1>::binder::set(T &&)': expects 1 arguments - 2 provided
1>C:\Users\stuar\Documents\mame-ai\src\mame\sony\news_r4k.cpp(482,19): message : with
1>C:\Users\stuar\Documents\mame-ai\src\mame\sony\news_r4k.cpp(482,19): message : [
1>C:\Users\stuar\Documents\mame-ai\src\mame\sony\news_r4k.cpp(482,19): message : Input=int
1>C:\Users\stuar\Documents\mame-ai\src\mame\sony\news_r4k.cpp(482,19): message : ]
1>C:\Users\stuar\Documents\mame-ai\src\mame\sony\news_r4k.cpp(482,19): message : m_dmac->irq_out().set(FUNC(news_r4k_state::irq_w<DMAC>));
1>C:\Users\stuar\Documents\mame-ai\src\mame\sony\news_r4k.cpp(482,19): message : ^
1>C:\Users\stuar\Documents\mame-ai\src\emu\devcb.h(2068): message : see declaration of 'devcb_write<int,1>::binder::set'
1>C:\Users\stuar\Documents\mame-ai\src\emu\devcb.h(2068): message : std::enable_if_t<is_write<Input, T>::value, functoid_builder<std::remove_reference_t<T> > > set(T &&cb)
<SNIP>
3>C:\Users\stuar\Documents\mame-ai\src\mame\nintendo\vsnes.cpp(953,1): error C2446: ':': no conversion from 'device_finder<cpu_device,false>' to 'device_finder<cpu_device,true>'
3>C:\Users\stuar\Documents\mame-ai\src\mame\nintendo\vsnes.cpp(953,1): error C2446: auto cpu = (Side == SUB) ? m_maincpu : m_subcpu;
3>C:\Users\stuar\Documents\mame-ai\src\mame\nintendo\vsnes.cpp(953,1): error C2446: ^
3>C:\Users\stuar\Documents\mame-ai\src\mame\nintendo\vsnes.cpp(953,41): message : No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
3>C:\Users\stuar\Documents\mame-ai\src\mame\nintendo\vsnes.cpp(953,41): message : auto cpu = (Side == SUB) ? m_maincpu : m_subcpu;
3>C:\Users\stuar\Documents\mame-ai\src\mame\nintendo\vsnes.cpp(953,41): message : ^
3>C:\Users\stuar\Documents\mame-ai\src\mame\nintendo\vsnes.cpp(963): message : see reference to function template instantiation 'void `anonymous-namespace'::vs_dual_state::vsdual_vrom_banking<`anonymous-namespace'::vs_base_state::MAIN>(osd::u8)' being compiled
3>C:\Users\stuar\Documents\mame-ai\src\mame\nintendo\vsnes.cpp(963): message : m_maincpu->space(AS_PROGRAM).install_write_handler(0x4016, 0x4016, write8smo_delegate(*this, FUNC(vs_dual_state::vsdual_vrom_banking<MAIN>)));
3>C:\Users\stuar\Documents\mame-ai\src\mame\nintendo\vsnes.cpp(954,1): error C3536: 'cpu': cannot be used before it is initialized
3>C:\Users\stuar\Documents\mame-ai\src\mame\nintendo\vsnes.cpp(954,1): error C3536: cpu->set_input_line(0, (data & 2) ? CLEAR_LINE : ASSERT_LINE);
3>C:\Users\stuar\Documents\mame-ai\src\mame\nintendo\vsnes.cpp(954,1): error C3536: ^
<SNIP>