@@ -399,7 +399,14 @@ namespace manapi::ev {
399399 };
400400
401401 struct chars_deleter {
402- void operator ()(char *data);
402+ void operator ()(const char *data);
403+ };
404+
405+ template <typename T>
406+ struct impl_array_deleter {
407+ void operator () (const T *data) {
408+ delete[] data;
409+ }
403410 };
404411
405412 /* *
@@ -1037,19 +1044,19 @@ namespace manapi::sys_error {
10371044 * Get the system code error
10381045 * @return the system code error
10391046 */
1040- [[nodiscard]] int syserr () const ;
1047+ MANAPIHTTP_NODISCARD int syserr () const ;
10411048
10421049 /* *
10431050 * Get the system name error
10441051 * @return the system name error
10451052 */
1046- [[nodiscard]] std::string_view sysname () const ;
1053+ MANAPIHTTP_NODISCARD std::string_view sysname () const ;
10471054
10481055 /* *
10491056 * Get the system msg error
10501057 * @return the system msg error
10511058 */
1052- [[nodiscard]] std::string_view sysmsg () const ;
1059+ MANAPIHTTP_NODISCARD std::string_view sysmsg () const ;
10531060 private:
10541061 /* the system error code */
10551062 int syserr_;
@@ -1076,23 +1083,23 @@ namespace manapi::sys_error {
10761083 * Get the system code error
10771084 * @return the system code error
10781085 */
1079- [[nodiscard]] int syserr () const {
1086+ MANAPIHTTP_NODISCARD int syserr () const {
10801087 return this ->err_ .syserr ();
10811088 }
10821089
10831090 /* *
10841091 * Get the system name error
10851092 * @return the system name error
10861093 */
1087- [[nodiscard]] std::string_view sysname () const {
1094+ MANAPIHTTP_NODISCARD std::string_view sysname () const {
10881095 return this ->err_ .sysname ();
10891096 }
10901097
10911098 /* *
10921099 * Get the system msg error
10931100 * @return the system msg error
10941101 */
1095- [[nodiscard]] std::string_view sysmsg () const {
1102+ MANAPIHTTP_NODISCARD std::string_view sysmsg () const {
10961103 return this ->err_ .sysmsg ();
10971104 }
10981105 };
0 commit comments