initial check in
This commit is contained in:
23
boost_variant_test.cpp
Normal file
23
boost_variant_test.cpp
Normal file
@@ -0,0 +1,23 @@
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string>
|
||||
#include <list>
|
||||
#include <boost/array.hpp>
|
||||
#include <boost/variant.hpp>
|
||||
|
||||
|
||||
typedef boost::variant<int,long,double, const char*, _int64, std::string*, boost::array<int,128>*> tVarinat;
|
||||
|
||||
int main ()
|
||||
{
|
||||
tVarinat v;
|
||||
std::list<int> l;
|
||||
|
||||
printf( "size %d\n", sizeof( tVarinat ) );
|
||||
printf( "size %d\n", sizeof( std::string ) );
|
||||
printf( "size %d\n", sizeof( l ) );
|
||||
printf( "size %d\n", sizeof( boost::array<int,128> ) );
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user