Changeset 10747


Ignore:
Timestamp:
May 19, 2011, 8:52:49 AM (8 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.