Permalink
Browse files

Fixed problems that mist could not be compiled with gcc of version 4.6.

  • Loading branch information...
ddeguchi committed May 29, 2012
1 parent d52f7e3 commit f9d10eb18f39bb82ec1db21bd39664bd1af8233c
Showing with 45 additions and 43 deletions.
  1. +1 −0 mist/config/mist_conf.h
  2. +2 −0 test/thread_test.cpp
  3. +42 −43 test/type_test.cpp
@@ -36,6 +36,7 @@

#include <iostream>
#include <cstdlib>
#include <cstddef>
#include <string>


@@ -27,6 +27,8 @@
//

#include <iostream>
#include <stdio.h>

#include <mist/matrix.h>
#include <mist/thread.h>

@@ -33,52 +33,51 @@
int main( int argc, char *argv[] )
{
using namespace std;
using namespace mist;

cout << " 1. The type is char [ char ]: \t"; cout << (int)is_char< char >::value << endl;
cout << " 2. The type is char [ signed char ]: \t"; cout << (int)is_char< signed char >::value << endl;
cout << " 3. The type is char [ unsigned char ]: \t"; cout << (int)is_char< unsigned char >::value << endl;
cout << " 4. The type is char [ signed short ]: \t"; cout << (int)is_char< signed short >::value << endl;
cout << " 5. The type is char [ unsigned short ]: \t"; cout << (int)is_char< unsigned short >::value << endl;
cout << " 6. The type is char [ signed int ]: \t"; cout << (int)is_char< signed int >::value << endl;
cout << " 7. The type is char [ unsigned int ]: \t"; cout << (int)is_char< unsigned int >::value << endl;
cout << " 8. The type is char [ signed long ]: \t"; cout << (int)is_char< signed long >::value << endl;
cout << " 9. The type is char [ unsigned long ]: \t"; cout << (int)is_char< unsigned long >::value << endl;
cout << " 10. The type is char [ float ]: \t"; cout << (int)is_char< float >::value << endl;
cout << " 11. The type is char [ double ]: \t"; cout << (int)is_char< double >::value << endl;
cout << " 12. The type is char [ long double ]: \t"; cout << (int)is_char< long double >::value << endl;
cout << " 13. The type is char [ size_t ]: \t"; cout << (int)is_char< size_t >::value << endl;
cout << " 14. The type is char [ ptrdiff_t ]: \t"; cout << (int)is_char< ptrdiff_t >::value << endl;
cout << " 1. The type is char [ char ]: \t"; cout << (int)mist::is_char< char >::value << endl;
cout << " 2. The type is char [ signed char ]: \t"; cout << (int)mist::is_char< signed char >::value << endl;
cout << " 3. The type is char [ unsigned char ]: \t"; cout << (int)mist::is_char< unsigned char >::value << endl;
cout << " 4. The type is char [ signed short ]: \t"; cout << (int)mist::is_char< signed short >::value << endl;
cout << " 5. The type is char [ unsigned short ]: \t"; cout << (int)mist::is_char< unsigned short >::value << endl;
cout << " 6. The type is char [ signed int ]: \t"; cout << (int)mist::is_char< signed int >::value << endl;
cout << " 7. The type is char [ unsigned int ]: \t"; cout << (int)mist::is_char< unsigned int >::value << endl;
cout << " 8. The type is char [ signed long ]: \t"; cout << (int)mist::is_char< signed long >::value << endl;
cout << " 9. The type is char [ unsigned long ]: \t"; cout << (int)mist::is_char< unsigned long >::value << endl;
cout << " 10. The type is char [ float ]: \t"; cout << (int)mist::is_char< float >::value << endl;
cout << " 11. The type is char [ double ]: \t"; cout << (int)mist::is_char< double >::value << endl;
cout << " 12. The type is char [ long double ]: \t"; cout << (int)mist::is_char< long double >::value << endl;
cout << " 13. The type is char [ size_t ]: \t"; cout << (int)mist::is_char< size_t >::value << endl;
cout << " 14. The type is char [ ptrdiff_t ]: \t"; cout << (int)mist::is_char< ptrdiff_t >::value << endl;

cout << " 1. The type is float [ char ]: \t"; cout << (int)is_float< char >::value << endl;
cout << " 2. The type is float [ signed char ]: \t"; cout << (int)is_float< signed char >::value << endl;
cout << " 3. The type is float [ unsigned char ]: \t"; cout << (int)is_float< unsigned char >::value << endl;
cout << " 4. The type is float [ signed short ]: \t"; cout << (int)is_float< signed short >::value << endl;
cout << " 5. The type is float [ unsigned short ]: \t"; cout << (int)is_float< unsigned short >::value << endl;
cout << " 6. The type is float [ signed int ]: \t"; cout << (int)is_float< signed int >::value << endl;
cout << " 7. The type is float [ unsigned int ]: \t"; cout << (int)is_float< unsigned int >::value << endl;
cout << " 8. The type is float [ signed long ]: \t"; cout << (int)is_float< signed long >::value << endl;
cout << " 9. The type is float [ unsigned long ]: \t"; cout << (int)is_float< unsigned long >::value << endl;
cout << " 10. The type is float [ float ]: \t"; cout << (int)is_float< float >::value << endl;
cout << " 11. The type is float [ double ]: \t"; cout << (int)is_float< double >::value << endl;
cout << " 12. The type is float [ long double ]: \t"; cout << (int)is_float< long double >::value << endl;
cout << " 13. The type is float [ size_t ]: \t"; cout << (int)is_float< size_t >::value << endl;
cout << " 14. The type is float [ ptrdiff_t ]: \t"; cout << (int)is_float< ptrdiff_t >::value << endl;
cout << " 1. The type is float [ char ]: \t"; cout << (int)mist::is_float< char >::value << endl;
cout << " 2. The type is float [ signed char ]: \t"; cout << (int)mist::is_float< signed char >::value << endl;
cout << " 3. The type is float [ unsigned char ]: \t"; cout << (int)mist::is_float< unsigned char >::value << endl;
cout << " 4. The type is float [ signed short ]: \t"; cout << (int)mist::is_float< signed short >::value << endl;
cout << " 5. The type is float [ unsigned short ]: \t"; cout << (int)mist::is_float< unsigned short >::value << endl;
cout << " 6. The type is float [ signed int ]: \t"; cout << (int)mist::is_float< signed int >::value << endl;
cout << " 7. The type is float [ unsigned int ]: \t"; cout << (int)mist::is_float< unsigned int >::value << endl;
cout << " 8. The type is float [ signed long ]: \t"; cout << (int)mist::is_float< signed long >::value << endl;
cout << " 9. The type is float [ unsigned long ]: \t"; cout << (int)mist::is_float< unsigned long >::value << endl;
cout << " 10. The type is float [ float ]: \t"; cout << (int)mist::is_float< float >::value << endl;
cout << " 11. The type is float [ double ]: \t"; cout << (int)mist::is_float< double >::value << endl;
cout << " 12. The type is float [ long double ]: \t"; cout << (int)mist::is_float< long double >::value << endl;
cout << " 13. The type is float [ size_t ]: \t"; cout << (int)mist::is_float< size_t >::value << endl;
cout << " 14. The type is float [ ptrdiff_t ]: \t"; cout << (int)mist::is_float< ptrdiff_t >::value << endl;

cout << " 1. The type is arithmetic [ char ]: \t"; cout << (int)is_arithmetic< char >::value << endl;
cout << " 2. The type is arithmetic [ signed char ]: \t"; cout << (int)is_arithmetic< signed char >::value << endl;
cout << " 3. The type is arithmetic [ unsigned char ]: \t"; cout << (int)is_arithmetic< unsigned char >::value << endl;
cout << " 4. The type is arithmetic [ signed short ]: \t"; cout << (int)is_arithmetic< signed short >::value << endl;
cout << " 5. The type is arithmetic [ unsigned short ]: \t"; cout << (int)is_arithmetic< unsigned short >::value << endl;
cout << " 6. The type is arithmetic [ signed int ]: \t"; cout << (int)is_arithmetic< signed int >::value << endl;
cout << " 7. The type is arithmetic [ unsigned int ]: \t"; cout << (int)is_arithmetic< unsigned int >::value << endl;
cout << " 8. The type is arithmetic [ signed long ]: \t"; cout << (int)is_arithmetic< signed long >::value << endl;
cout << " 9. The type is arithmetic [ unsigned long ]: \t"; cout << (int)is_arithmetic< unsigned long >::value << endl;
cout << " 10. The type is arithmetic [ float ]: \t"; cout << (int)is_arithmetic< float >::value << endl;
cout << " 11. The type is arithmetic [ double ]: \t"; cout << (int)is_arithmetic< double >::value << endl;
cout << " 12. The type is arithmetic [ long double ]: \t"; cout << (int)is_arithmetic< long double >::value << endl;
cout << " 13. The type is arithmetic [ size_t ]: \t"; cout << (int)is_arithmetic< size_t >::value << endl;
cout << " 14. The type is arithmetic [ ptrdiff_t ]: \t"; cout << (int)is_arithmetic< ptrdiff_t >::value << endl;
cout << " 1. The type is arithmetic [ char ]: \t"; cout << (int)mist::is_arithmetic< char >::value << endl;
cout << " 2. The type is arithmetic [ signed char ]: \t"; cout << (int)mist::is_arithmetic< signed char >::value << endl;
cout << " 3. The type is arithmetic [ unsigned char ]: \t"; cout << (int)mist::is_arithmetic< unsigned char >::value << endl;
cout << " 4. The type is arithmetic [ signed short ]: \t"; cout << (int)mist::is_arithmetic< signed short >::value << endl;
cout << " 5. The type is arithmetic [ unsigned short ]: \t"; cout << (int)mist::is_arithmetic< unsigned short >::value << endl;
cout << " 6. The type is arithmetic [ signed int ]: \t"; cout << (int)mist::is_arithmetic< signed int >::value << endl;
cout << " 7. The type is arithmetic [ unsigned int ]: \t"; cout << (int)mist::is_arithmetic< unsigned int >::value << endl;
cout << " 8. The type is arithmetic [ signed long ]: \t"; cout << (int)mist::is_arithmetic< signed long >::value << endl;
cout << " 9. The type is arithmetic [ unsigned long ]: \t"; cout << (int)mist::is_arithmetic< unsigned long >::value << endl;
cout << " 10. The type is arithmetic [ float ]: \t"; cout << (int)mist::is_arithmetic< float >::value << endl;
cout << " 11. The type is arithmetic [ double ]: \t"; cout << (int)mist::is_arithmetic< double >::value << endl;
cout << " 12. The type is arithmetic [ long double ]: \t"; cout << (int)mist::is_arithmetic< long double >::value << endl;
cout << " 13. The type is arithmetic [ size_t ]: \t"; cout << (int)mist::is_arithmetic< size_t >::value << endl;
cout << " 14. The type is arithmetic [ ptrdiff_t ]: \t"; cout << (int)mist::is_arithmetic< ptrdiff_t >::value << endl;

cout << " 1. sizeof( char ) = "; cout << (int)sizeof( char ) << endl;
cout << " 2. sizeof( signed char ) = "; cout << (int)sizeof( signed char ) << endl;

0 comments on commit f9d10eb

Please sign in to comment.