Must use namespace ::std instead of std for g++ on Linux