I am working on switching my project from boost::asio to asio while still leaving boost in my project for other features that use boost. I keep getting tons of errors when trying to compile when I try and import asio.hpp into a header file. I had at one point read that this may be due to circular dependencies, however I resolved these with all of the source files that are connected to the header being imported and I am still running into the issue. The error log is quite large, so this is just a little snippet of the error log:
boost\boost/core/enable_if.hpp(32,12): warning C4348: 'boost::enable_if_c': redefinition of default parameter: parameter 2boost\boost/core/enable_if.hpp(33,10): message : see declaration of 'boost::enable_if_c'boost\boost/core/enable_if.hpp(35,4): error C2953: 'boost::enable_if_c': class template has already been definedboost\boost/core/enable_if.hpp(33,10): message : see declaration of 'boost::enable_if_c'boost\boost/core/enable_if.hpp(38,34): error C3855: 'boost::enable_if_c': template parameter 'B' is incompatible with the declarationboost\boost/core/enable_if.hpp(38,34): error C2976: 'boost::enable_if_c': too few template argumentsboost\boost/core/enable_if.hpp(38,10): message : see declaration of 'boost::enable_if_c'
I am working on switching my project from boost::asio to asio while still leaving boost in my project for other features that use boost. I keep getting tons of errors when trying to compile when I try and import asio.hpp into a header file. I had at one point read that this may be due to circular dependencies, however I resolved these with all of the source files that are connected to the header being imported and I am still running into the issue. The error log is quite large, so this is just a little snippet of the error log:
boost\boost/core/enable_if.hpp(32,12): warning C4348: 'boost::enable_if_c': redefinition of default parameter: parameter 2
boost\boost/core/enable_if.hpp(33,10): message : see declaration of 'boost::enable_if_c'
boost\boost/core/enable_if.hpp(35,4): error C2953: 'boost::enable_if_c': class template has already been defined
boost\boost/core/enable_if.hpp(33,10): message : see declaration of 'boost::enable_if_c'
boost\boost/core/enable_if.hpp(38,34): error C3855: 'boost::enable_if_c': template parameter 'B' is incompatible with the declaration
boost\boost/core/enable_if.hpp(38,34): error C2976: 'boost::enable_if_c': too few template arguments
boost\boost/core/enable_if.hpp(38,10): message : see declaration of 'boost::enable_if_c'
Any help would be appreciated!