MCPcopy Create free account
hub / github.com/davisking/dlib / serialize_floating_point

Function serialize_floating_point

dlib/serialize.h:666–678  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

664
665 template <typename T>
666 inline void serialize_floating_point (
667 const T& item,
668 std::ostream& out
669 )
670 {
671 try
672 {
673 float_details temp = item;
674 serialize(temp, out);
675 }
676 catch (serialization_error& e)
677 { throw serialization_error(e.info + "\n while serializing a floating point number."); }
678 }
679
680 template <typename T>
681 inline bool old_deserialize_floating_point (

Callers 1

serializeFunction · 0.85

Calls 2

serialization_errorClass · 0.85
serializeFunction · 0.70

Tested by

no test coverage detected