There is an error message that appears Call to constructor of 'Binary' is ambiguous, that error message just appears when using LLVM compiler on macOS but on windows, it doesn't appear.
Also, the class's constructor parameters do not look the same.
class Binary {
public:
Binary() = default;
Binary(uintmax_t containerSize);
Binary(unsigned char binary);
Binary(std::initializer_list<unsigned char> binaryList);
// .....
};
// When using
// fileSize is `std::streamoff` data type
Binary fileContent((unsigned long long)fileSize) // << This line is causing the problem.
What's wrong with my class?