|
17 | 17 |
|
18 | 18 | namespace JSON |
19 | 19 | { |
20 | | - template <typename CharType = char, template <typename...> class ContainerT = std::vector> |
21 | | - void encodeBase64(std::ostream& stream, ContainerT <CharType> const& bytes); |
22 | | - template <typename CharType = char, template <typename...> class ContainerT = std::vector> |
23 | | - void decodeBase64(std::string const& input, ContainerT <CharType>& bytes); |
| 20 | + template <typename CharType = char, template <typename...> class ContainerT = std::vector, typename... Dummys> |
| 21 | + void encodeBase64(std::ostream& stream, ContainerT <CharType, Dummys...> const& bytes); |
| 22 | + template <typename CharType = char, template <typename...> class ContainerT = std::vector, typename... Dummys> |
| 23 | + void decodeBase64(std::string const& input, ContainerT <CharType, Dummys...>& bytes); |
24 | 24 |
|
25 | 25 | template <typename CharType = char, template <typename...> class ContainerT = std::vector> |
26 | 26 | struct Base64Binary |
@@ -135,8 +135,8 @@ namespace JSON |
135 | 135 |
|
136 | 136 | namespace JSON |
137 | 137 | { |
138 | | - template <typename CharType, template <typename...> class ContainerT> |
139 | | - void encodeBase64(std::ostream& stream, ContainerT <CharType> const& bytes) |
| 138 | + template <typename CharType, template <typename...> class ContainerT, typename... Dummys> |
| 139 | + void encodeBase64(std::ostream& stream, ContainerT <CharType, Dummys...> const& bytes) |
140 | 140 | { |
141 | 141 | static CharType const table[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; |
142 | 142 |
|
@@ -174,8 +174,8 @@ namespace JSON |
174 | 174 | } |
175 | 175 | } |
176 | 176 |
|
177 | | - template <typename CharType, template <typename...> class ContainerT> |
178 | | - void decodeBase64(std::string const& input, ContainerT <CharType>& bytes) |
| 177 | + template <typename CharType, template <typename...> class ContainerT, typename... Dummys> |
| 178 | + void decodeBase64(std::string const& input, ContainerT <CharType, Dummys...>& bytes) |
179 | 179 | { |
180 | 180 | // static CharType const table[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; |
181 | 181 |
|
|
0 commit comments