diff --git a/pxr/base/tf/testenv/notice.cpp b/pxr/base/tf/testenv/notice.cpp index f20d504091..797052eacc 100644 --- a/pxr/base/tf/testenv/notice.cpp +++ b/pxr/base/tf/testenv/notice.cpp @@ -31,6 +31,7 @@ #include "pxr/base/tf/weakPtr.h" #include "pxr/base/arch/systemInfo.h" +#include #include #include #include @@ -109,10 +110,11 @@ vector mainThreadList; std::mutex workerThreadLock; std::mutex mainThreadLock; +// Helper to lock and print the list of log strings alphabetically; then clear the list static void _DumpLog(ostream *log, vector *li, std::mutex *mutex) { std::lock_guard lock(*mutex); - sort(li->begin(), li->end()); + std::sort(li->begin(), li->end()); for(vector::const_iterator n = li->begin(); n != li->end(); ++ n) { *log << *n << endl;