1 ////////////////////////////////////////////////////////////////////////////////
3 // Author: Andy Rushton
4 // Copyright: (c) Southampton University 1999-2004
5 // (c) Andy Rushton 2004-2009
6 // License: BSD License, see ../docs/license.html
8 ////////////////////////////////////////////////////////////////////////////////
14 std::string bitset_to_string(const std::bitset<N>& data)
17 for (unsigned i = data.size(); i--; )
18 result += data.test(i) ? '1' : '0';
22 } // end namespace stlplus