Ticket #12909: base64.diff

File base64.diff, 1.2 KB (added by martin.apel@…, 6 years ago)

Fix patch

  • boost/archive/iterators/base64_from_binary.hpp

    diff --git a/boost/archive/iterators/base64_from_binary.hpp b/boost/archive/iterators/base64_from_binary.hpp
    index 00c4e10c10..bd0b38fa57 100644
    a b template<class CharType>  
    4141struct from_6_bit {
    4242    typedef CharType result_type;
    4343    CharType operator()(CharType t) const{
    44         const char * lookup_table =
     44        static const char * lookup_table =
    4545            "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
    4646            "abcdefghijklmnopqrstuvwxyz"
    4747            "0123456789"
  • boost/archive/iterators/binary_from_base64.hpp

    diff --git a/boost/archive/iterators/binary_from_base64.hpp b/boost/archive/iterators/binary_from_base64.hpp
    index 2eb7828251..5aeccb3aab 100644
    a b template<class CharType>  
    3737struct to_6_bit {
    3838    typedef CharType result_type;
    3939    CharType operator()(CharType t) const{
    40         const signed char lookup_table[] = {
     40        static const signed char lookup_table[] = {
    4141            -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
    4242            -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
    4343            -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,