Skip to content

Commit

Permalink
fix windows run error bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Oneplus committed Jan 20, 2014
1 parent 1580289 commit 3c63555
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/logging.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class ul_logger {
ul_logger(const char * _filename = NULL,
int _lvl = 0) {

if (!(log_fpo = fopen(_filename, "w"))) {
if (!_filename || !(log_fpo = fopen(_filename, "w"))) {
log_fpo = stderr;
}

Expand Down
9 changes: 9 additions & 0 deletions thirdparty/boost/include/boost/multi_array/view.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,16 @@ class multi_array_view :
other.shape()+this->num_dimensions(),
this->shape()));
// iterator-based copy
#if _MSC_VER >= 1600
auto
iterThis = begin();
auto
iterOther = other.begin();
for (; iterThis != end(); ++iterThis, ++iterOther)
*iterThis = *iterOther;
#else
std::copy(other.begin(),other.end(),begin());
#endif
}
return *this;
}
Expand Down

0 comments on commit 3c63555

Please sign in to comment.