void to::test<10>() { using liblas::Header; std::string softid1("Short Soft Id"); // 13 bytes std::string::size_type const len1 = softid1.size(); std::string softid2("Long Software Identifier - XX YY"); // 32 bytes std::string::size_type const len2 = softid2.size(); Header h; h.SetSoftwareId(softid1); ensure_equals(h.GetSoftwareId(), softid1); ensure_equals(h.GetSoftwareId().size(), len1); ensure_equals(h.GetSoftwareId(true).size(), std::string::size_type(32)); h.SetSoftwareId(softid2); ensure_equals(h.GetSoftwareId(), softid2); ensure_equals(h.GetSoftwareId().size(), len2); ensure_equals(h.GetSoftwareId(true).size(), std::string::size_type(32)); }