batcholi / XenonCode

5 stars 4 forks source link

MSVS 2022 Compile Log (with errors) #4

Open romulous75 opened 2 months ago

romulous75 commented 2 months ago

In main.cpp :

#define XENONCODE_IMPLEMENTATION #include "XenonCode/XenonCode.hpp"

Output:

  1. include\XenonCode\XenonCode.hpp(4916,102): error C2440: 'initializing': cannot convert from 'std::chrono::steady_clock::time_point' to 'std::chrono::time_point<std::chrono::system_clock,std::chrono::duration<double,std::milli>>'

  2. include\XenonCode\XenonCode.hpp(6586,43): error C3539: a template-argument cannot be a type that contains 'auto'

  3. include\XenonCode\XenonCode.hpp(6664,12): error C2664: 'void XenonCode::Computer::RunCode::<lambda_4>::operator ()(std::vector<int,std::allocator<int>> &) const': cannot convert argument 1 from 'std::vector<std::string,std::allocator<std::string>>' to 'std::vector<int,std::allocator<int>> &'

  4. include\XenonCode\XenonCode.hpp(6668,12): error C2664: 'void XenonCode::Computer::RunCode::<lambda_4>::operator ()(std::vector<int,std::allocator<int>> &) const': cannot convert argument 1 from 'std::vector<double,std::allocator<double>>' to 'std::vector<int,std::allocator<int>> &'

  5. include\XenonCode\XenonCode.hpp(6671,12): error C2664: 'void XenonCode::Computer::RunCode::<lambda_4>::operator ()(std::vector<int,std::allocator<int>> &) const': cannot convert argument 1 from 'std::vector<std::string,std::allocator<std::string>>' to 'std::vector<int,std::allocator<int>> &'

batcholi commented 1 month ago

It's best to use GCC for this project, we can assume that it's not compatible with MSVC at the moment. We're not using MSVC here, so feel free to make a PR if you end up getting it to work on your end. I would rather keep it clean and not have any compile-time #if MSVC in the code so if you want to help fix this I recommend finding a solution that is cross-platform for a PR to be accepted.