getcwd = boost::filesystem::path full_path(boost::filesystem::current_path());
Example:
boost::filesystem::path full_path(boost::filesystem::current_path());
std::cout << "Current path is : " << full_path << std::endl;
To access current_path one needs to add #include <boost/filesystem.hpp>.