Ignore:
Timestamp:
09/07/13 16:17:45 (11 years ago)
Author:
tbretz
Message:
The two functions need an inline tag, otherwise they can end up in two different object files which then cannot belinked together.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mcore/huffman.h

    r17134 r17142  
    383383    };
    384384
    385     bool Encode(std::string &bufout, const uint16_t *bufin, size_t bufinlen)
     385    inline bool Encode(std::string &bufout, const uint16_t *bufin, size_t bufinlen)
    386386    {
    387387        const Encoder encoder(bufin, bufinlen);
     
    399399    }
    400400
    401     int64_t Decode(const uint8_t *bufin,
    402                size_t         bufinlen,
    403                std::vector<uint16_t> &pbufout)
     401    inline int64_t Decode(const uint8_t *bufin,
     402                          size_t         bufinlen,
     403                          std::vector<uint16_t> &pbufout)
    404404    {
    405405        int64_t i = 0;
Note: See TracChangeset for help on using the changeset viewer.