Skip to content

Commit

Permalink
VS2013 fixes.
Browse files Browse the repository at this point in the history
* There's no default move ctors.
* There's no atomic value ctor.
  • Loading branch information
grafikrobot committed Aug 20, 2023
1 parent 66b93e4 commit 9c1beb3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
10 changes: 8 additions & 2 deletions src/engine/regexp.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ struct regex_prog;
struct program
{
program() = default;
program(program &&) = default;
program(program && o)
: compiled(std::move(o.compiled))
{}
program(const program &) = default;
explicit program(const char * pattern);

Expand Down Expand Up @@ -63,7 +65,11 @@ struct program::result_iterator

result_iterator(const regex_prog & c, const string_view & s);
result_iterator(const result_iterator & o) = default;
result_iterator(result_iterator && o) = default;
result_iterator(result_iterator && o)
: compiled(std::move(o.compiled))
, expressions(std::move(o.expressions))
, rest(std::move(o.rest))
{}

inline result_iterator & operator++()
{
Expand Down
7 changes: 4 additions & 3 deletions src/engine/tasks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,10 @@ struct sync
#if B2_USE_STD_THREADS

inline sync::sync()
: wait_arrived(false)
, signal_arrived(false)
{}
{
wait_arrived = false;
signal_arrived = false;
}

inline void sync::wait()
{
Expand Down

0 comments on commit 9c1beb3

Please sign in to comment.