Skip to content
This repository was archived by the owner on Oct 7, 2023. It is now read-only.

Commit bdfa4ba

Browse files
committed
복사 대입 연산자 추가
1 parent e3514bf commit bdfa4ba

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

FreeGLUT/IHandle.ixx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ export namespace gl::device
4141
return *this;
4242
}
4343

44+
constexpr IHandle& operator=(const handle_type& handle) noexcept
45+
{
46+
myHandle = handle;
47+
return *this;
48+
}
49+
4450
constexpr IHandle& operator=(handle_type&& handle) noexcept
4551
{
4652
myHandle = std::exchange(handle, nullptr);

0 commit comments

Comments
 (0)