There is no cross platform way that I know.
For Linux: readlink /proc/self/exe
Windows: GetModuleFileName
More Related Contents:
- Magic number in boost::hash_combine
- Should the exception thrown by boost::asio::io_service::run() be caught?
- undefined reference to boost::system::system_category() when compiling
- Best documentation for Boost:asio?
- How can I decode the boost library naming?
- Boost C++ Serialization overhead
- boost::spirit::qi duplicate parsing on the output
- How do you install Boost on MacOS?
- Can I use a mask to iterate files in a directory with Boost?
- Which Boost features overlap with C++11?
- boost asio ssl async_shutdown always finishes with an error?
- How to avoid memory leak with shared_ptr?
- Doing a static_assert that a template type is another template
- boost::flat_map and its performance compared to map and unordered_map
- how provide a vertex_index property for my graph
- C++ convert integer to string at compile time
- Boost::asio – how to interrupt a blocked tcp server thread?
- Dijkstra Shortest Path with VertexList = ListS in boost graph
- Understanding the List Operator (%) in Boost.Spirit
- Why does nvcc fails to compile a CUDA file with boost::spirit?
- linker error while linking boost log tutorial (undefined references)
- Is boost shared_ptr thread safe?
- Comparing 3 modern c++ ways to convert integral values to strings
- How do I build boost with new Visual Studio 2013 preview?
- Constraining the existing Boost.Spirit real_parser (with a policy)
- CMake: Project structure with unit tests
- How to determine the Boost version on a system?
- Using shared_ptr in dll-interfaces
- Type erasure in C++: how boost::shared_ptr and boost::function work?
- Strange exception throw – assign: Operation not permitted