Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • ParaView ParaView
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 2k
    • Issues 2k
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 86
    • Merge requests 86
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • ParaViewParaView
  • ParaViewParaView
  • Merge requests
  • !1074

Add missing header for std::ostringstream

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Steven Hahn requested to merge quantumsteve/paraview:missing_include into master Sep 27, 2016
  • Overview 10
  • Commits 1
  • Pipelines 1
  • Changes 1

This adds the <sstream> header for std::ostringstream. Without it, I get the error message below.

16:55:10 /Users/builder/src/ParaView-master-source/ParaViewCore/ServerManager/Rendering/vtkSMTransferFunctionProxy.cxx:916:24: error: implicit instantiation of undefined template 'std::__1::basic_ostringstream<char, std::__1::char_traits<char>, std::__1::allocator<char> >'
16:55:10     std::ostringstream prefix;
16:55:10                        ^
16:55:10 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iosfwd:123:33: note: template is declared here
16:55:10     class _LIBCPP_TYPE_VIS_ONLY basic_ostringstream;
16:55:10                                 ^
16:55:10 [ 81%] Building CXX object VTK/Wrapping/Python/CMakeFiles/vtkPVServerManagerCorePythonD.dir/vtkSMDoubleVectorPropertyPython.cxx.o
16:55:10 1 error generated.
16:55:10 make[2]: *** [ParaViewCore/ServerManager/Rendering/CMakeFiles/vtkPVServerManagerRendering.dir/vtkSMTransferFunctionProxy.cxx.o] Error 1
16:55:10 make[2]: *** Waiting for unfinished jobs...

I also changed the C header math.h to the C++ alternative cmath.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: missing_include