Ticket #2744: enum_with_duplicated_values_unittest.patch
File enum_with_duplicated_values_unittest.patch, 651 bytes (added by , 14 years ago) |
---|
-
libs/python/test/enum.cpp
12 12 #endif 13 13 using namespace boost::python; 14 14 15 enum color { red = 1, green = 2, blue = 4 };15 enum color { red = 1, green = 2, blue = 4, blood = 1 }; 16 16 17 17 #if BOOST_WORKAROUND(__MWERKS__, <= 0x2407) 18 18 namespace boost // Pro7 has a hard time detecting enums … … 34 34 .value("red", red) 35 35 .value("green", green) 36 36 .value("blue", blue) 37 .value("blood", blood) 37 38 .export_values() 38 39 ; 39 40