I’m trying to implement a feature found in Dolphin emulator into an unofficial build while learning about C++ coding on my own. Right now I was able to decrease the amount of errors to one file but these are the errors that I am getting for it.
First code errors are for this:
const u64 bytes_per_chunk = std::min(out_data_per_chunk, VolumeWii::GROUP_DATA_SIZE);
const u64 total_size = blocks_in_this_group * VolumeWii::BLOCK_DATA_SIZE;
const u64 data_offset = parameters.data_offset + write_offset_of_group;
I get an error that says "No matching function for call to min" when referring to the " std::min " It appears in here as well:
const u64 bytes_to_write = std::min(bytes_to_write_total, VolumeWii::GROUP_DATA_SIZE);
The next error I get (again all this is within the same .cpp file) is also from the same lines of code:
const u64 bytes_per_chunk = std::min(out_data_per_chunk, VolumeWii::GROUP_DATA_SIZE);
const u64 total_size = blocks_in_this_group * VolumeWii::BLOCK_DATA_SIZE;
const u64 data_offset = parameters.data_offset + write_offset_of_group;
and here too:
const u64 bytes_to_write = std::min(bytes_to_write_total, VolumeWii::GROUP_DATA_SIZE);
The error I get for the later set is " default initialization of an object of const type ‘const 64’ (aka ‘const unsigned long’) " –> this is related/highlighted by the "bytes_to_write" line in Android Studio.
So far those are the 2 errors that stop me from building the app.
IF you want to see the entire code in the .cpp file then you can see it here:
https://github.com/JosJuice/dolphin/blob/660d81a10b4a8ff9a61631e69fb93e9010bccbc0/Source/Core/DiscIO/WIABlob.cpp
I hope I can get any good advice to get through this issue and finally built the Apk (got stuck on this for weeks now)
Source: Windows Questions C++
