File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,8 @@ namespace detail {
35
35
// thread_pool threads. For this control MIncrementCounter class member is used.
36
36
template <class ResourceHandler > class ObjectUsageCounter {
37
37
public:
38
+ // Note: -Wctad-maybe-unsupported may generate warning if no ResourceHandler
39
+ // type explicitly declared.
38
40
ObjectUsageCounter (std::unique_ptr<ResourceHandler> &Obj, bool ModifyCounter)
39
41
: MModifyCounter(ModifyCounter), MObj(Obj) {
40
42
if (MModifyCounter)
@@ -92,8 +94,8 @@ Scheduler &GlobalHandler::getScheduler() {
92
94
}
93
95
94
96
void GlobalHandler::registerSchedulerUsage (bool ModifyCounter) {
95
- thread_local ObjectUsageCounter SchedulerCounter (MScheduler.Inst ,
96
- ModifyCounter);
97
+ thread_local ObjectUsageCounter<Scheduler> SchedulerCounter (MScheduler.Inst ,
98
+ ModifyCounter);
97
99
}
98
100
99
101
ProgramManager &GlobalHandler::getProgramManager () {
You can’t perform that action at this time.
0 commit comments