On Thu, Feb 20, 2025 at 12:57:26AM +0100, Jean-Marc Lasgouttes wrote: > Le 08/02/2025 ?? 18:56, Pavel Sanda a écrit : > > commit c8319a1f7e434b9cf55802a70d6cdad8facbf377 > > Author: Pavel Sanda <sa...@lyx.org> > > Date: Sat Feb 8 18:55:00 2025 +0100 > > > > Backport 2a771febd1a (last fix for #12819 - check for deleted > > documents) > > --- > > src/Buffer.cpp | 28 ++++++++++++++++++++-------- > > status.24x | 3 +++ > > 2 files changed, 23 insertions(+), 8 deletions(-) > > This fails to build in C++11 mode (ms suffix is a C++14 thing).
Thanks for the catch. Does the following compile for you? Pavel
diff --git a/src/Buffer.cpp b/src/Buffer.cpp index 9a22aa652d..43dd4a69da 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -5784,7 +5784,7 @@ void Buffer::Impl::fileExternallyModified(bool const exists) //Essentially the same problem as in FileMonitorGuard::refresh. //'exists' is not reliable marker of file removal here, e.g. //file overwrite often causes short-term removal, see #12819. - std::this_thread::sleep_for(200ms); + std::this_thread::sleep_for(chrono::milliseconds(200)); FileName refreshf (filename.absFileName()); //Only double check with delay will trigger warning if(refreshf.exists())
-- lyx-devel mailing list lyx-devel@lists.lyx.org https://lists.lyx.org/mailman/listinfo/lyx-devel