if one uses the boost unit test macros (see below), qtcreator marks the
BOOST_CHECK(...) macros as syntax error (expected ;):
#include <boost/test/unit_test.hpp>
#include "person.h"
BOOST_AUTO_TEST_CASE(Person1)
{
Person p("Hugo", "Tester");
BOOST_CHECK(p.firstname() == "Hugo");
BOOST_CHECK(p.lastname() == "Tester");
}
Does anybody know how to avoid this (yes, I can use the Qt unit testing
framework, but thats not a solution in this special case)?
--
Wilhelm
_______________________________________________
Boost-users mailing list
Boost...@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users
Does anybody know how to avoid this (yes, I can use the Qt unit testing
framework, but thats not a solution in this special case)?
Yes, it compiles well!
But the syntax-parser of qtcreator reports an error (red wave-underline
of BOOST_CHECK macro)
>
>
> With Kind Regards,
> Ovanes
Am 24.08.2011 13:18, schrieb Ovanes Markarian:
> <mailto:wilhel...@fh-kl.de>> wrote:Yes, it compiles well!
>
> [...]
>
>
>
> Does anybody know how to avoid this (yes, I can use the Qt unit testing
> framework, but thats not a solution in this special case)?
>
>
> IMO Boost Test Framework is fully C++ compliant and compiles well by
> various compilers. If there are problems with Qt Creator, report a bug
> to Qt.
But the syntax-parser of qtcreator reports an error (red wave-underline
of BOOST_CHECK macro)
boost...@lists.boost.org spake the secret code
<4E54E66C...@fh-kl.de> thusly:
>But the syntax-parser of qtcreator reports an error (red wave-underline
>of BOOST_CHECK macro)
Then report a bug against qtcreator. This is not a problem with
Boost.Test.
--
"The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download
<http://legalizeadulthood.wordpress.com/the-direct3d-graphics-pipeline/>
Legalize Adulthood! <http://legalizeadulthood.wordpress.com>