Ticket #7332: crc.diff

File crc.diff, 1.1 KB (added by Sergey Fokin <drigh@…>, 10 years ago)
  • boost/crc.hpp

    commit 650c856dd6842f54d03e5b1cbb27a8662ce3307e
    Author: Sergey Fokin <drigh@deviantart.com>
    Date:   Wed Sep 5 10:14:56 2012 -0700
    
        Added inline directives to couple of internal functions
    
    diff --git a/boost/crc.hpp b/boost/crc.hpp
    index e47221e..ca4eaa1 100644
    a b namespace detail  
    437437          <var>i</var>, <code><var>a</var>[ <var>i</var> ]</code> resolves to
    438438          the reflected value of <var>i</var>.
    439439     */
    440     boost::array< unsigned char, (UINTMAX_C( 1 ) << CHAR_BIT) >
     440    inline boost::array< unsigned char, (UINTMAX_C( 1 ) << CHAR_BIT) >
    441441    make_byte_reflection_table()
    442442    {
    443443        boost::array<unsigned char, ( UINTMAX_C(1) << CHAR_BIT )>  result;
    namespace detail  
    464464          number of states is relatively small, the implementation pre-computes
    465465          and uses a table of all the results.
    466466     */
    467     unsigned char  reflect_byte( unsigned char x )
     467    inline unsigned char  reflect_byte( unsigned char x )
    468468    {
    469469        static  boost::array<unsigned char, ( UINTMAX_C(1) << CHAR_BIT )> const
    470470          table = make_byte_reflection_table();