Changeset 10747 for trunk


Ignore:
Timestamp:
05/19/11 08:52:49 (14 years ago)
Author:
tbretz
Message:
Improved exception output.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/ByteOrder.h

    r10730 r10747  
    6363{
    6464    if (sizeof(S)!=vec.size()*2)
    65         throw std::logic_error("size of vector mismatch "+std::string(typeid(S).name()));
     65        throw std::logic_error("ntohcpy: size of vector mismatch "+std::string(typeid(S).name()));
    6666
    6767    std::transform(vec.begin(), vec.end(),
     
    7373{
    7474    if (sizeof(S)%2)
    75         throw std::logic_error("size of "+std::string(typeid(S).name())+" not a multiple of 2");
     75        throw std::logic_error("htoncpy: size of "+std::string(typeid(S).name())+" not a multiple of 2");
    7676
    7777    std::vector<uint16_t> v(sizeof(S)/2);
Note: See TracChangeset for help on using the changeset viewer.