Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
fcf11feb
You need to sign in or sign up before continuing.
Commit
fcf11feb
authored
Apr 19, 2016
by
Davis King
Browse files
Fixed file I/O error that happens only on windows.
parent
168574bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
dlib/dnn/trainer.h
dlib/dnn/trainer.h
+1
-0
No files found.
dlib/dnn/trainer.h
View file @
fcf11feb
...
@@ -736,6 +736,7 @@ namespace dlib
...
@@ -736,6 +736,7 @@ namespace dlib
// Now that we know the state is safely saved to disk, delete the old sync
// Now that we know the state is safely saved to disk, delete the old sync
// file and move the .tmp file to it.
// file and move the .tmp file to it.
std
::
remove
(
sync_filename
.
c_str
());
std
::
rename
(
tempfile
.
c_str
(),
sync_filename
.
c_str
());
std
::
rename
(
tempfile
.
c_str
(),
sync_filename
.
c_str
());
last_sync_time
=
std
::
chrono
::
system_clock
::
now
();
last_sync_time
=
std
::
chrono
::
system_clock
::
now
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment