Ticket #5 (closed defect: fixed)
Opened 6 months ago
Last modified 6 months ago
thrudoc_bench and thrudex_bench use ostringstream, but don't include <sstream>
| Reported by: | darrell+thrudb@… | Owned by: | jake |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | component1 | Version: | |
| Keywords: | Cc: |
Description
The build fails in two files:
source:trunk/thrudoc/src/thrudoc_bench.cpp
source:trunk/thrudex/src/thrudex_bench.cpp
with this message: aggregate ‘std::stringstream ResultStream’ has incomplete type and cannot be defined
The fix is very simple; just include <sstream>
# svn diff thrudoc/src/thrudoc_bench.cpp thrudex/src/thrudex_bench.cpp Index: thrudoc/src/thrudoc_bench.cpp =================================================================== --- thrudoc/src/thrudoc_bench.cpp (revision 362) +++ thrudoc/src/thrudoc_bench.cpp (working copy) @@ -26,6 +26,7 @@ #include <transport/TTransportUtils.h> #include <transport/TFileTransport.h> #include <stdexcept> +#include <sstream> #include <iostream> #include "Thrudoc.h" Index: thrudex/src/thrudex_bench.cpp =================================================================== --- thrudex/src/thrudex_bench.cpp (revision 362) +++ thrudex/src/thrudex_bench.cpp (working copy) @@ -23,6 +23,7 @@ #include <transport/TFileTransport.h> #include <stdexcept> #include <iostream> +#include <sstream> #include "Thrudex.h" #include "utils.h"
Change History
Note: See
TracTickets for help on using
tickets.
