Skip to content

Commit f3ca220

Browse files
authored
Mark private_constructor ctor's as explicit (#406)
Without the explicit at least MSCV allows you to create them with `{}` outside of the private internal wrapping classes. Closes #405
1 parent 131d9ff commit f3ca220

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/coro/io_scheduler.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class io_scheduler
3636

3737
struct private_constructor
3838
{
39-
private_constructor() = default;
39+
explicit private_constructor() = default;
4040
};
4141

4242
public:

include/coro/thread_pool.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class thread_pool
2929
{
3030
struct private_constructor
3131
{
32-
private_constructor() = default;
32+
explicit private_constructor() = default;
3333
};
3434
public:
3535
/**

0 commit comments

Comments
 (0)