소스 검색

Add missing noexcept

Kajetan Johannes Hammerle 2 달 전
부모
커밋
e735779e9e
1개의 변경된 파일5개의 추가작업 그리고 4개의 파일을 삭제
  1. 5 4
      modules/ToString.cppm

+ 5 - 4
modules/ToString.cppm

@@ -147,21 +147,22 @@ export namespace Core {
         String() noexcept : StringBase(data, N) {
         }
 
-        String(String&& other) : String(static_cast<const String&>(other)) {
+        String(String&& other) noexcept :
+            String(static_cast<const String&>(other)) {
         }
 
-        String(const String& other) : String() {
+        String(const String& other) noexcept : String() {
             clear();
             add(other);
         }
 
-        String& operator=(String&& other) {
+        String& operator=(String&& other) noexcept {
             clear();
             add(other);
             return *this;
         }
 
-        String& operator=(const String& other) {
+        String& operator=(const String& other) noexcept {
             clear();
             add(other);
             return *this;