Skip to content

Commit aef1e7d

Browse files
committed
Merge pull request #301 from prantlf/base64_util
Declare the BASE64 alphabet as array of chars; not as a pointer
2 parents b590000 + 080b2cf commit aef1e7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

boost/network/utils/base64/encode.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ namespace detail {
5252
// from the input sequence to encode.
5353
template <typename Value>
5454
char encode_value(Value value) {
55-
static char const * encoding = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
55+
static char const encoding[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
5656
return encoding[static_cast<unsigned int>(value)];
5757
}
5858

0 commit comments

Comments
 (0)