ModOrganizer2 / mob

Mod Organizer Builder.
15 stars 22 forks source link

Can't build mob with VS2022 (v17.2.4) #98

Closed LePresidente closed 2 years ago

LePresidente commented 2 years ago

Fails with the following error on a clean checkout of the QT6 branch

D:\dev\mob>bootstrap.bat
D:\dev\mob\src\utility\algo.h(148,63): error C2672: 'std::declval': no matching overloaded function found [D:\dev\mob\v
s\mob.vcxproj]
D:\dev\mob\src\utility\algo.h(148,46): error C2974: 'std::declval': invalid template argument for '_Ty', type expected
[D:\dev\mob\vs\mob.vcxproj]
D:\dev\mob\src\utility\algo.h(149,7): error C2976: 'std::vector': too few template arguments [D:\dev\mob\vs\mob.vcxproj
]
D:\dev\mob\src\utility\algo.h(147): error C2641: cannot deduce template arguments for 'std::vector' [D:\dev\mob\vs\mob.
vcxproj]
D:\dev\mob\src\utility\algo.h(147): error C2783: 'std::vector<_Ty,_Alloc> std::vector(void) noexcept(<expr>)': could no
t deduce template argument for '_Ty' [D:\dev\mob\vs\mob.vcxproj]
D:\dev\mob\src\utility\algo.h(147,1): error C2780: 'std::vector<_Ty,_Alloc> std::vector(std::vector<_Ty,_Alloc>)': expe
cts 1 arguments - 0 provided [D:\dev\mob\vs\mob.vcxproj]
D:\dev\mob\src\utility\algo.h(148,63): error C2672: 'std::declval': no matching overloaded function found [D:\dev\mob\v
s\mob.vcxproj]
D:\dev\mob\src\utility\algo.h(148,46): error C2974: 'std::declval': invalid template argument for '_Ty', type expected
[D:\dev\mob\vs\mob.vcxproj]
D:\dev\mob\src\utility\algo.h(149,7): error C2976: 'std::vector': too few template arguments [D:\dev\mob\vs\mob.vcxproj
]
D:\dev\mob\src\utility\algo.h(147): error C2641: cannot deduce template arguments for 'std::vector' [D:\dev\mob\vs\mob.
vcxproj]
D:\dev\mob\src\utility\algo.h(147): error C2783: 'std::vector<_Ty,_Alloc> std::vector(void) noexcept(<expr>)': could no
t deduce template argument for '_Ty' [D:\dev\mob\vs\mob.vcxproj]
D:\dev\mob\src\utility\algo.h(147,1): error C2780: 'std::vector<_Ty,_Alloc> std::vector(std::vector<_Ty,_Alloc>)': expe
cts 1 arguments - 0 provided [D:\dev\mob\vs\mob.vcxproj]
D:\dev\mob\src\core\env.cpp(197,23): error C2641: cannot deduce template arguments for 'std::vector' [D:\dev\mob\vs\mob
.vcxproj]
D:\dev\mob\src\core\env.cpp(198,53): error C2780: 'std::vector<conditional_t<std::_Is_from_primary<std::iterator_traits
<remove_cv<remove_reference<_Ty>::type>::type>>,std::indirectly_readable_traits<remove_cv<remove_reference<_Ty>::type>:
:type>,std::iterator_traits<remove_cv<remove_reference<_Ty>::type>::type>>::value_type,_Alloc> std::vector(_Iter,_Iter,
_Alloc)': expects 3 arguments - 1 provided [D:\dev\mob\vs\mob.vcxproj]
D:\dev\mob\src\core\env.cpp(198,53): error C2780: 'std::vector<_Ty,_Alloc> std::vector(std::vector<_Ty,_Alloc> &&,const
 _Identity<_Alloc>::type &) noexcept(<expr>)': expects 2 arguments - 1 provided [D:\dev\mob\vs\mob.vcxproj]
D:\dev\mob\src\core\env.cpp(198,53): error C2784: 'std::vector<_Ty,_Alloc> std::vector(std::vector<_Ty,_Alloc> &&) noex
cept': could not deduce template argument for 'std::vector<_Ty,_Alloc> &&' from 'std::vector' [D:\dev\mob\vs\mob.vcxpro
j]
D:\dev\mob\src\core\env.cpp(198,53): error C2784: 'std::vector<_Ty,_Alloc> std::vector(std::vector<_Ty,_Alloc> &&) noex
cept': could not deduce template argument for 'std::vector<_Ty,_Alloc> &&' from 'std::vector' [D:\dev\mob\vs\mob.vcxpro
j]
D:\dev\mob\src\core\env.cpp(198,53): error C2780: 'std::vector<_Ty,_Alloc> std::vector(const std::vector<_Ty,_Alloc> &,
const _Identity<_Alloc>::type &)': expects 2 arguments - 1 provided [D:\dev\mob\vs\mob.vcxproj]
D:\dev\mob\src\core\env.cpp(198,53): error C2784: 'std::vector<_Ty,_Alloc> std::vector(const std::vector<_Ty,_Alloc> &)
': could not deduce template argument for 'const std::vector<_Ty,_Alloc> &' from 'std::vector' [D:\dev\mob\vs\mob.vcxpr
oj]
D:\dev\mob\src\core\env.cpp(198,53): error C2784: 'std::vector<_Ty,_Alloc> std::vector(const std::vector<_Ty,_Alloc> &)
': could not deduce template argument for 'const std::vector<_Ty,_Alloc> &' from 'std::vector' [D:\dev\mob\vs\mob.vcxpr
oj]
D:\dev\mob\src\core\env.cpp(198,53): error C2784: 'std::vector<_Ty,_Alloc> std::vector(std::initializer_list<_Elem>,con
st _Alloc &)': could not deduce template argument for 'std::initializer_list<_Elem>' from 'std::vector' [D:\dev\mob\vs\
mob.vcxproj]
D:\dev\mob\src\core\env.cpp(198,53): error C2784: 'std::vector<_Ty,_Alloc> std::vector(std::initializer_list<_Elem>,con
st _Alloc &)': could not deduce template argument for 'std::initializer_list<_Elem>' from 'std::vector' [D:\dev\mob\vs\
mob.vcxproj]
D:\dev\mob\src\core\env.cpp(198,53): error C2780: 'std::vector<_Ty,_Alloc> std::vector(_Iter,_Iter,const _Alloc &)': ex
pects 3 arguments - 1 provided [D:\dev\mob\vs\mob.vcxproj]
D:\dev\mob\src\core\env.cpp(198,53): error C2780: 'std::vector<_Ty,_Alloc> std::vector(const allocator_traits<allocator
_traits<_Alloc>::rebind_alloc<_Ty>>::size_type,const _Ty &,const _Alloc &)': expects 3 arguments - 1 provided [D:\dev\m
ob\vs\mob.vcxproj]
D:\dev\mob\src\core\env.cpp(198,53): error C2780: 'std::vector<_Ty,_Alloc> std::vector(void) noexcept(<expr>)': expects
 0 arguments - 1 provided [D:\dev\mob\vs\mob.vcxproj]
D:\dev\mob\src\core\env.cpp(198,53): error C2784: 'std::vector<_Ty,_Alloc> std::vector(std::vector<_Ty,_Alloc>)': could
 not deduce template argument for 'std::vector<_Ty,_Alloc>' from 'std::vector' [D:\dev\mob\vs\mob.vcxproj]
D:\dev\mob\src\core\env.cpp(198,53): error C2784: 'std::vector<_Ty,_Alloc> std::vector(std::vector<_Ty,_Alloc>)': could
 not deduce template argument for 'std::vector<_Ty,_Alloc>' from 'std::vector' [D:\dev\mob\vs\mob.vcxproj]
D:\dev\mob\src\core\env.cpp(200,11): error C2672: 'join': no matching overloaded function found [D:\dev\mob\vs\mob.vcxp
roj]
D:\dev\mob\src\core\env.cpp(200,29): error C2784: 'auto mob::join(const std::vector<_Ty,std::allocator<_Ty>> &,const Se
p &,To)': could not deduce template argument for 'const std::vector<_Ty,std::allocator<_Ty>> &' from 'const std::vector
' [D:\dev\mob\vs\mob.vcxproj]
D:\dev\mob\src\utility\algo.h(148,63): error C2672: 'std::declval': no matching overloaded function found [D:\dev\mob\v
s\mob.vcxproj]
D:\dev\mob\src\utility\algo.h(148,46): error C2974: 'std::declval': invalid template argument for '_Ty', type expected
[D:\dev\mob\vs\mob.vcxproj]
D:\dev\mob\src\utility\algo.h(149,7): error C2976: 'std::vector': too few template arguments [D:\dev\mob\vs\mob.vcxproj
]
D:\dev\mob\src\utility\algo.h(147): error C2641: cannot deduce template arguments for 'std::vector' [D:\dev\mob\vs\mob.
vcxproj]
D:\dev\mob\src\utility\algo.h(147): error C2783: 'std::vector<_Ty,_Alloc> std::vector(void) noexcept(<expr>)': could no
t deduce template argument for '_Ty' [D:\dev\mob\vs\mob.vcxproj]
D:\dev\mob\src\utility\algo.h(147,1): error C2780: 'std::vector<_Ty,_Alloc> std::vector(std::vector<_Ty,_Alloc>)': expe
cts 1 arguments - 0 provided [D:\dev\mob\vs\mob.vcxproj]
D:\dev\mob\src\utility\algo.h(147): error C2783: 'std::vector<_Ty,_Alloc> std::vector(void) noexcept(<expr>)': could no
t deduce template argument for '_Ty' [D:\dev\mob\vs\mob.vcxproj]
D:\dev\mob\src\utility\algo.h(147,1): error C2780: 'std::vector<_Ty,_Alloc> std::vector(std::vector<_Ty,_Alloc>)': expe
cts 1 arguments - 0 provided [D:\dev\mob\vs\mob.vcxproj]
if (! $?) {
    Write-Error "Build failed"
    exit $LastExitCode
} : Build failed
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException
LePresidente commented 2 years ago

tested again and its fixed