Does this difference in log function param matter between platforms? #5
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Linux
void log(std::vector<token> tokens)
Windows
void log(const std::vector<token> tokens)
The platform-parity issue has been mostly "solved" by moving the bulk of the logic to shared/jlog.cpp, but it should probably be const std::vector& anyway unless it gets modified somehow.
Got it. Should it be
const std::vector&
for only Windows or both of them? On Linux I had some issues with that trying to stop clangd's bitching.The interface should be const type& if it is not a primitive type (numbers etc) and it will not be modified by the function. The implementation for both platforms should match the interfaces' function signatures. Can you elaborate on the clangd complaint?