Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

boost source code

Tags:

c++

boost

Is there any way to get the boost libraries source code? I have browsed the SVN repository and I could see only HPP files. No source files are available there. I would like to look into the source code for "shared_ptr". Can anyone guide me?

Also from where can I download BCP utility?

like image 222
Navaneeth K N Avatar asked Jan 13 '09 04:01

Navaneeth K N


3 Answers

The vast majority of the source code is entirely in the header files - it has to be in order for templates to work. You cannot put template code in source files and compile them separately.

like image 55
Adam Rosenfield Avatar answered Oct 01 '22 19:10

Adam Rosenfield


All source files (.cpp) are under under /boost/libs/<library-name>

The majority of boost libraries consist entirely of headers. The exceptions are:

  • test
  • thread
  • wave
  • serialization
  • signals
  • python
  • regex
  • math
  • graph
  • iostreams
  • filesystem
  • datetime
like image 23
JoeG Avatar answered Oct 01 '22 17:10

JoeG


As Adam mentioned, it's almost all in the headers. Some, like boost::regex, do require source files to be built, but those are also included in the main download.

The BCP utility is included in the main download.

like image 20
Eclipse Avatar answered Oct 01 '22 19:10

Eclipse