Skip to content

Commit

Permalink
using namespace std::placeholders is no more used in timer.hpp.
Browse files Browse the repository at this point in the history
Version number is changed to 5.7.2.4.
  • Loading branch information
eao197 committed May 12, 2021
1 parent 20379c1 commit 6d88ea2
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 16 deletions.
2 changes: 1 addition & 1 deletion dev/so_5/cmake/target.cmake
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
set(SO_5_VERSION "5.7.2.3")
set(SO_5_VERSION "5.7.2.4")
set(SO_5_SHARED_LIB so.${SO_5_VERSION})
set(SO_5_STATIC_LIB so_s.${SO_5_VERSION})
32 changes: 20 additions & 12 deletions dev/so_5/timers.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -332,9 +332,11 @@ timer_wheel_factory(
std::chrono::steady_clock::duration ) =
create_timer_wheel_thread;

using namespace std::placeholders;

return std::bind( f, _1, wheel_size, granularity );
return std::bind(
f,
std::placeholders::_1,
wheel_size,
granularity );
}

/*!
Expand Down Expand Up @@ -367,9 +369,10 @@ timer_heap_factory(
timer_thread_unique_ptr_t (*f)( error_logger_shptr_t, std::size_t ) =
create_timer_heap_thread;

using namespace std::placeholders;

return std::bind( f, _1, initial_heap_capacity );
return std::bind(
f,
std::placeholders::_1,
initial_heap_capacity );
}

/*!
Expand Down Expand Up @@ -672,9 +675,12 @@ timer_wheel_manager_factory(
std::chrono::steady_clock::duration ) =
create_timer_wheel_manager;

using namespace std::placeholders;

return std::bind( f, _1, _2, wheel_size, granularity );
return std::bind(
f,
std::placeholders::_1,
std::placeholders::_2,
wheel_size,
granularity );
}

/*!
Expand Down Expand Up @@ -714,9 +720,11 @@ timer_heap_manager_factory(
std::size_t ) =
create_timer_heap_manager;

using namespace std::placeholders;

return std::bind( f, _1, _2, initial_heap_capacity );
return std::bind(
f,
std::placeholders::_1,
std::placeholders::_2,
initial_heap_capacity );
}

/*!
Expand Down
4 changes: 2 additions & 2 deletions dev/so_5/version.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

#pragma once

// The current version is 5.7.2.3
// The current version is 5.7.2.4
//
/*!
* A number next to generation number in SObjectizer's version.
Expand Down Expand Up @@ -43,7 +43,7 @@
* or API fixes are added to SObjectizer but SObjectizer API is compatible on
* source-code level.
*/
#define SO_5_VERSION_PATCH 3ull
#define SO_5_VERSION_PATCH 4ull

/*!
* Helper macro for make single number representation of SObjectizer's version.
Expand Down
2 changes: 1 addition & 1 deletion dev/so_5/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module So5
VERSION = "5.7.2.3"
VERSION = "5.7.2.4"
end

0 comments on commit 6d88ea2

Please sign in to comment.