diff --git a/test/winmain.cpp b/test/winmain.cpp index 20dc9c5..4cbcad5 100644 --- a/test/winmain.cpp +++ b/test/winmain.cpp @@ -14,7 +14,7 @@ using namespace std; using namespace boost::program_options; -void check_equal(const std::vector& actual, char **expected, int n) +void check_equal(const std::vector& actual, const char **expected, int n) { if (actual.size() != n) { @@ -38,7 +38,7 @@ void test_winmain() #define C , #define TEST(input, expected) \ - char* BOOST_PP_CAT(e, __LINE__)[] = expected;\ + const char* BOOST_PP_CAT(e, __LINE__)[] = expected;\ vector BOOST_PP_CAT(v, __LINE__) = split_winmain(input);\ check_equal(BOOST_PP_CAT(v, __LINE__), BOOST_PP_CAT(e, __LINE__),\ sizeof(BOOST_PP_CAT(e, __LINE__))/sizeof(char*));