Opened 15 years ago
Closed 15 years ago
#1595 closed Bugs (fixed)
[spirit] missing #includes
Reported by: | Owned by: | Joel de Guzman | |
---|---|---|---|
Milestone: | Boost 1.35.0 | Component: | spirit |
Version: | Boost Development Trunk | Severity: | Showstopper |
Keywords: | Cc: | Hartmut Kaiser |
Description
The stdcxx is the another implementation of the STL (initially based on RogueWave STL).
The following errors are encountered when running boost regression tests on msvc with stdcxx-4.2.0.
ast_calc_tests.cpp ..\boost/spirit/tree/impl/tree_to_xml.ipp(67) : error C3861: 'strlen': identifier not found ..\libs\spirit\test\ast_calc_tests.cpp(158) : error C3861: 'strtol': identifier not found
The proposed patch:
Index: boost/spirit/tree/impl/tree_to_xml.ipp =================================================================== --- boost/spirit/tree/impl/tree_to_xml.ipp (revision 42908) +++ boost/spirit/tree/impl/tree_to_xml.ipp (working copy) @@ -13,6 +13,7 @@ #include <cstdio> #include <cstdarg> +#include <string.h> // for strlen() #include <locale> #include <string> Index: libs/spirit/test/ast_calc_tests.cpp =================================================================== --- libs/spirit/test/ast_calc_tests.cpp (revision 42908) +++ libs/spirit/test/ast_calc_tests.cpp (working copy) @@ -13,6 +13,7 @@ #include <boost/spirit/tree/tree_to_xml.hpp> #include <boost/detail/workaround.hpp> +#include <stdlib.h> // for strtol() #include <iostream> #include <stack> #include <functional>
Change History (2)
comment:2 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
I applied your patch to V1.35. and the trunk.
Regards Hartmut
Note:
See TracTickets
for help on using tickets.