mirror of
https://github.com/revsic/cpp-obfuscator
synced 2026-06-08 17:08:30 +00:00
obfs, string: Add keyword template
This commit is contained in:
+1
-1
@@ -153,7 +153,7 @@ namespace obfs {
|
||||
|
||||
template <typename Table, std::size_t size>
|
||||
constexpr auto make_string(char const (&str)[size]) {
|
||||
using pair = typename Table::index<OBFS_RAND_VAL(Table::size)>;
|
||||
using pair = typename Table::template index<OBFS_RAND_VAL(Table::size)>;
|
||||
constexpr Encoder encoder = pair::index<0>::value;
|
||||
constexpr Decoder decoder = pair::index<1>::value;
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@ namespace obfs {
|
||||
|
||||
template <typename Table, std::size_t size>
|
||||
constexpr auto make_string(char const (&str)[size]) {
|
||||
using pair = typename Table::index<OBFS_RAND_VAL(Table::size)>;
|
||||
using pair = typename Table::template index<OBFS_RAND_VAL(Table::size)>;
|
||||
constexpr Encoder encoder = pair::index<0>::value;
|
||||
constexpr Decoder decoder = pair::index<1>::value;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user