I recently read that a literal such as s , h , ms , etc. was placed in the std::literals namespace in C ++ 14. Therefore, if I use them, I must either include the namespace or use std::literals:: to denote these suffixes. However, when I tried the following program ( cpp.sh/9ytu ) without using any of the above, I got the required output: -
#include <iostream>
As you can see, I did not include any namespace or std::literals:: while my program was working correctly. I tried this in Orwell DevC ++, C ++ Shell, Coliru and got the same result all over the world. What is the problem?
source share