How to determine the Boost version on a system?

前端 未结 12 2204
暖寄归人
暖寄归人 2020-12-04 07:46

Is there a quick way to determine the version of the Boost C++ libraries on a system?

12条回答
  •  攒了一身酷
    2020-12-04 08:05

    #include 
    #include 
    #include 
    
    int main()
    {
        std::cout << "Boost version: " 
              << BOOST_VERSION / 100000
              << "."
              << BOOST_VERSION / 100 % 1000
              << "."
              << BOOST_VERSION % 100 
              << std::endl;
        return 0;
    }
    

    Update: the answer has been fixed.

提交回复
热议问题