@@ -32,8 +32,8 @@ namespace hpx::threads {
3232 public:
3333 constexpr thread_id () noexcept = default;
3434
35- thread_id (thread_id const &) = default ;
36- thread_id& operator =(thread_id const &) = default ;
35+ thread_id (thread_id const &) noexcept = default ;
36+ thread_id& operator =(thread_id const &) noexcept = default ;
3737
3838 ~thread_id () = default ;
3939
@@ -52,11 +52,11 @@ namespace hpx::threads {
5252 return *this ;
5353 }
5454
55- explicit constexpr thread_id (thread_id_repr thrd) noexcept
55+ explicit constexpr thread_id (thread_id_repr const thrd) noexcept
5656 : thrd_(thrd)
5757 {
5858 }
59- constexpr thread_id& operator =(thread_id_repr rhs) noexcept
59+ constexpr thread_id& operator =(thread_id_repr const rhs) noexcept
6060 {
6161 thrd_ = rhs;
6262 return *this ;
@@ -164,7 +164,7 @@ namespace hpx::threads {
164164 // created thread will be held alive by the variable returned from
165165 // the creation function;
166166 explicit constexpr thread_data_reference_counting (
167- thread_id_addref addref = thread_id_addref::yes) noexcept
167+ thread_id_addref const addref = thread_id_addref::yes) noexcept
168168 : count_(addref == thread_id_addref::yes ? 1 : 0 )
169169 {
170170 }
@@ -232,7 +232,7 @@ namespace hpx::threads {
232232 using thread_repr = detail::thread_data_reference_counting;
233233
234234 explicit thread_id_ref (thread_repr* thrd,
235- thread_id_addref addref = thread_id_addref::yes) noexcept
235+ thread_id_addref const addref = thread_id_addref::yes) noexcept
236236 : thrd_(thrd, addref == thread_id_addref::yes)
237237 {
238238 }
@@ -296,7 +296,7 @@ namespace hpx::threads {
296296 thrd_.reset ();
297297 }
298298
299- void reset (thread_repr* thrd, bool add_ref = true ) noexcept
299+ void reset (thread_repr* thrd, bool const add_ref = true ) noexcept
300300 {
301301 thrd_.reset (thrd, add_ref);
302302 }
0 commit comments