obfs, string: Add keyword template

This commit is contained in:
revsic
2019-02-22 22:46:08 +09:00
parent 6d87171829
commit 8b17297702
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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;