Michele Caini 1 год назад
Родитель
Сommit
4a681e4d00
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      test/entt/meta/meta_custom.cpp

+ 2 - 2
test/entt/meta/meta_custom.cpp

@@ -12,11 +12,11 @@ struct clazz {
     int i{2};
     char j{'c'};
 
-    int f(int) const {
+    [[nodiscard]] int f(int) const {
         return i;
     }
 
-    char g(char) const {
+    [[nodiscard]] char g(char) const {
         return j;
     }
 };