Changeset 567

Show
Ignore:
Timestamp:
06/23/08 16:33:00 (5 months ago)
Author:
moenicke
Message:

* another type info example

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/rphp/runtime/var-test.cpp

    r566 r567  
    88#include "boost/variant.hpp" 
    99#include <iostream> 
     10#include <typeinfo> 
    1011 
    1112// just a demo class, we'd also have php_object 
     
    129130    //std::cout << result << std::endl; // output: 11 (i.e., length of "hello world") 
    130131 
     132    // output is ugly, it also might not be available everywhere 
     133    std::cout << typeid( u ).name() << std::endl; 
    131134}