Closed skaravos closed 2 years ago
Actually it is probably better to change the function signature in the header file to use size_t
.
If you change the source file to be unsigned
you'll get compilation warnings because the write_date_time()
function is called with the result of strlen()
(which is always size_t
)
Calling
loguru::write_date_time()
function causes linker errors on systems whereunsigned
!=size_t
.The declaration of
write_date_time()
usesunsigned
for its buffer size and the definition in the .cpp usessize_t
.The function signature in loguru.cpp should be changed to match the header file.