Q1) Do I need to lock static constants of a class like string::npos that is accessed by multiple threads in a multithreaded program?
Q2) If I have a function that can be called by multiple threads and which takes in a reference parameter and does not lock it, is it safe so long as no reference to shared data is passed?