Skip to content
This repository was archived by the owner on Dec 1, 2021. It is now read-only.

Commit e8edae8

Browse files
authored
Merge pull request #74 from hochladen/patch-2
Add AEGIS_DECL to perm_strs for dynamic lib compatibility
2 parents 8fe6ce3 + ff2584a commit e8edae8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/aegis/impl/permission.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ AEGIS_DECL void to_json(nlohmann::json& j, const permission& s)
3030
}
3131
/// \endcond
3232

33-
const std::unordered_map<int64_t, const std::string> permission::perm_strs {
33+
AEGIS_DECL const std::unordered_map<int64_t, const std::string> permission::perm_strs {
3434
{0x1, "Create invites"},
3535
{0x2, "Kick members"},
3636
{0x4, "Ban members"},

include/aegis/permission.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ class permission
152152

153153
private:
154154
int64_t _allow_permissions = 0;
155-
static const std::unordered_map<int64_t, const std::string> perm_strs;
155+
AEGIS_DECL static const std::unordered_map<int64_t, const std::string> perm_strs;
156156
};
157157

158158
/// \cond TEMPLATES

0 commit comments

Comments
 (0)