#include #include "property.h" struct TestStruct { TestString(): Time( "na" ), Date( "na" ), Name( "David" ), Count( -1 ), Index( 10 ) { } Property Time; Property Date; Property Name; Property Count; Property Index; }; void main() { TestStruct Z; Z.Date( "12/10/2008" ); Z.Time( "3:17:00PM" ); #ifdef TEST_COMPILE_ERRORS Z.Name( "BJ" ); // this won't compile by design #endif std::string strName = Z.Name(); int iCount = Z.Count; Z.Count( 3 ); Z.Count = 6; int i = Z.Index; #ifdef TEST_COMPILE_ERRORS Z.Index = 7; // this won't compile by design #endif }