Parcourir la source

refactor & fix: 修复动态库编译错误

SongZihuan il y a 3 ans
Parent
commit
efff92e196
1 fichiers modifiés avec 3 ajouts et 2 suppressions
  1. 3 2
      include/tool/tool-exception.h

+ 3 - 2
include/tool/tool-exception.h

@@ -1,14 +1,15 @@
 #ifndef AFUN_TOOL_EXCEPTION_H
 #define AFUN_TOOL_EXCEPTION_H
+#include "aFunToolExport.h"
 #include "tool-type.h"
 
 namespace aFuntool {
-    class aFunException : public std::exception {
+    class AFUN_TOOL_EXPORT aFunException : public std::exception {
         std::string message;
     public:
         inline explicit aFunException(std::string msg);
         virtual const char *what();
-        inline const std::string &getMessage() const;
+        [[nodiscard]] inline const std::string &getMessage() const;
     };
 
     class aFuntoolException : public aFunException {