Reputation: 15501
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?
Upvotes: 11
Views: 10572
Reputation: 400224
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.
Upvotes: 30
Reputation: 13182
All source files (.cpp) are under under /boost/libs/<library-name>
The majority of boost libraries consist entirely of headers. The exceptions are:
Upvotes: 6
Reputation: 506925
Most part of boost is in headers, but some parts are in cpp
-files too. The doc index page lists which libraries are header/not header only. You can download the boost source here. The source of bcp
is available in the archive too, in the tools/bcp
subdirectory.
Upvotes: 3
Reputation: 71939
The Boost libraries have the following core directory structure:
-> boost : Contains the header files. Since much of Boost is implemented in headers, this also contains lots of implementation, usually in detail subdirectories.
-> lib : Contains the precompiled sources, test suites, examples, and sometimes documentation of the libraries.
-> doc : Contains some documentation.
-> tools : Contains the tools like Boost.Jam, Boost.Build, standalone Wave, and also BCP.
Upvotes: 1
Reputation: 45493
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.
Upvotes: 3