Add data() member

git-svn-id: http://svn.boost.org/svn/boost/sandbox/endian@62439 b8fc166d-592f-0410-95f2-cb63ce0dd405
This commit is contained in:
bemandawes committed 2010-06-05 11:45:21 +00:00
1 parent 22ccd7a2e4
commit c60b7d2171
7 files changed
+237 -19

No files matched your search

+17 -1
View File
@@ -264,6 +264,8 @@ void op_test()
#endif
}
// main ------------------------------------------------------------------------------//
int main()
{
bi::endian_log = false;
@@ -339,7 +341,21 @@ int main()
std::clog << "\n";
bi::endian_log = false;
// test from Roland Schwarz that detected ambiguities
unsigned u;
bi::ulittle32_t u1;
bi::ulittle32_t u2;
u = 1;
u1 = 1;
u2 = u1 + u;
// one more wrinkle
bi::ulittle16_t u3(3);
u3 = 3;
u2 = u1 + u3;
// perform the indicated test on ~60*60 operand types
op_test<default_construct>();