From 4ab9c840e4f6cd1523ef65ce4608681d669f99e5 Mon Sep 17 00:00:00 2001 From: Robin Mills Date: Mon, 22 Aug 2016 13:44:46 +0000 Subject: [PATCH] #1207 Updating comments in samples/mt-test.cpp to document build restrictions. --- samples/mt-test.cpp | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/samples/mt-test.cpp b/samples/mt-test.cpp index 94168715..8e8f7f9b 100644 --- a/samples/mt-test.cpp +++ b/samples/mt-test.cpp @@ -1,13 +1,21 @@ // ***************************************************************** -*- C++ -*- -// mt-test.cpp $Rev: 3090 $ +// mt-test.cpp $Rev: 4415 $ // Sample multi-threading program +// Discussion: http://dev.exiv2.org/issues/1207 +// Caution: This code isn't currently exercised by any bash script in the test suite +// This code is here for use in development when multi-threading issues +// are being discussed. For example #1207 and #1187 +// It may be brought into use when Exiv2 support C++11 (#1188) +// + +// WARNING: Only builds with clang and gcc < 4.9. I've never tried to build with Visual Studio // requires C++11 // On Mac #define __cplusplus 201103L // Older compilers #define __cplusplus 199711 -// Compiler switches: -std=c++11 -stdlib=libc++ (set in samples/Makefile) -// Discussion: http://dev.exiv2.org/issues/1207 -// Caution: This code isn't currently exercised any bash script in the test suite +// Compiler switches: -std=c++11 (set in samples/Makefile) + +// WARNING: auto_ptr is not supported in C++11 implemented by gcc 4.9/C++11 and later #include #include