Skip to content

Commit

Permalink
std::to_string for uint128_t (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
eile authored Nov 22, 2016
1 parent 001588d commit 895ab49
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .gitexternals
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# -*- mode: cmake -*-
# CMake/common https://github.com/Eyescale/CMake.git c685ea0
# CMake/common https://github.com/Eyescale/CMake.git 57c465e
7 changes: 0 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,6 @@ notifications:
on_success: never
language: cpp
sudo: false
cache:
ccache: true
pip: true
directories:
- /usr/local
before_cache:
- brew cleanup
os:
- osx
env:
Expand Down
6 changes: 2 additions & 4 deletions servus/serializable.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,7 @@ class Serializable
* @throw if a DeserializedCallback is already registered and the specified
* callback is not 'nullptr' (or 0)
*/
SERVUS_API void registerDeserializedCallback(
const DeserializedCallback& callback );
SERVUS_API void registerDeserializedCallback( const DeserializedCallback& );

/**
* Register a function to be called when the serializable object is about
Expand All @@ -109,8 +108,7 @@ class Serializable
* @throw if a SerializedCallback is already registered and the specified
* callback is not 'nullptr' (or 0)
*/
SERVUS_API void registerSerializeCallback(
const SerializeCallback& callback );
SERVUS_API void registerSerializeCallback( const SerializeCallback& );
//@}

protected:
Expand Down
5 changes: 5 additions & 0 deletions servus/uint128_t.h
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,11 @@ template<> struct hash< servus::uint128_t >
return forward( in.high( )) ^ forward( in.low( ));
}
};

inline string to_string( const servus::uint128_t& value )
{
return value.getString();
}
}

#endif // SERVUS_UINT128_H

0 comments on commit 895ab49

Please sign in to comment.