Boost beast integration issues in UE4 plugin?











up vote
0
down vote

favorite












I am trying to create a UE4 plugin then I can simply create a blueprint function like so using Boost Beast client example :



void UBoostBPFunctionLibrary::ConnectWebsocket(FString inMessage, FString& outResStr)
{
//using tcp = boost::asio::ip::tcp; // from <boost/asio/ip/tcp.hpp>
//namespace websocket = boost::beast::websocket; // from <boost/beast/websocket.hpp>

//auto const host = "127.0.0.1";
//auto const port = "8080";
//std::string text(TCHAR_TO_ANSI(*inMessage));

//// The io_context is required for all I/O
//boost::asio::io_context ioc;

//// These objects perform our I/O
//tcp::resolver resolver{ ioc };
//websocket::stream<tcp::socket> ws{ ioc };

//// Look up the domain name
//auto const results = resolver.resolve(host, port);

//// Make the connection on the IP address we get from a lookup
//boost::asio::connect(ws.next_layer(), results.begin(), results.end());

//// Perform the websocket handshake
//ws.handshake(host, "/");

//// Send the message
//ws.write(boost::asio::buffer(std::string(text)));

//// This buffer will hold the incoming message
//boost::beast::multi_buffer buffer;

//// Read a message into our buffer
//ws.read(buffer);

//// Close the WebSocket connection
//ws.close(websocket::close_code::normal);

////// If we get here then the connection is closed gracefully
//// // The buffers() function helps print a ConstBufferSequence
//outResStr = FString(boost::beast::to_static_string(boost::beast::buffers(buffer.data())).c_str());
}


But as I try to compile simply by including the following header files in my BoostBPFunctionLibrary.h :



#include <boost/beast/core.hpp>
#include <boost/beast/websocket.hpp>
#include <boost/asio/connect.hpp>
#include <boost/asio/ip/tcp.hpp>


I get loads of errors such as the following. I guess the errors are all pointing to the clash of check definition in "AssertionMacros.h" and any boost version of it, but the question then is how can I fix that and make it work ? Why is there no clear fundamental separation between the two definitions ? I tried to remove the boost version of "check function" as pointed by the first error line but that breaks other code files in boost, I tried to do that to UE4 and the answer is still no. I feel that there is something fundamentally wrong here. Please advice.



2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/list.hpp(1333): error C4003: not enough arguments for function-like macro invocation 'check'
2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/list.hpp(1333): error C2062: type 'void' unexpected
2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/list.hpp(1405): note: see reference to class template instantiation 'boost::intrusive::list_impl<ValueTraits,SizeType,ConstantTimeSize,HeaderHolder>' being compiled
2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/list.hpp(1333): error C2334: unexpected token(s) preceding '{'; skipping apparent function body
2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/list.hpp(1334): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/list.hpp(1334): error C2059: syntax error: '{'
2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/list.hpp(1334): error C2334: unexpected token(s) preceding '{'; skipping apparent function body
2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree_algorithms.hpp(1452): warning C4002: too many arguments for function-like macro invocation 'check'
2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree_algorithms.hpp(1452): error C2988: unrecognizable template declaration/definition
2> C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree_algorithms.hpp(2074): note: see reference to class template instantiation 'boost::intrusive::bstree_algorithms<NodeTraits>' being compiled
2> C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/beast/core/string.hpp(87): note: see reference to class template instantiation 'boost::basic_string_view<char,std::char_traits<char>>' being compiled
2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree_algorithms.hpp(1452): error C2059: syntax error: '<end Parse>'
2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree_algorithms.hpp(1452): error C2334: unexpected token(s) preceding '{'; skipping apparent function body
2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree_algorithms.hpp(1453): error C2988: unrecognizable template declaration/definition
2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree_algorithms.hpp(1453): error C2059: syntax error: '{'
2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree_algorithms.hpp(1453): error C2334: unexpected token(s) preceding '{'; skipping apparent function body
2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2074): error C4003: not enough arguments for function-like macro invocation 'check'
2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2057): error C2988: unrecognizable template declaration/definition
2> C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2122): note: see reference to class template instantiation 'boost::intrusive::bstree_impl<ValueTraits,VoidOrKeyOfValue,VoidOrKeyComp,SizeType,ConstantTimeSize,AlgoType,HeaderHolder>' being compiled
2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2057): error C2059: syntax error: '<end Parse>'
2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2057): error C2334: unexpected token(s) preceding '{'; skipping apparent function body
2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2058): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2058): error C2988: unrecognizable template declaration/definition
2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2058): error C2059: syntax error: '{'
2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2058): error C2334: unexpected token(s) preceding '{'; skipping apparent function body
2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2074): error C2062: type 'void' unexpected
2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2074): error C2334: unexpected token(s) preceding '{'; skipping apparent function body
2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2075): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2075): error C2988: unrecognizable template declaration/definition
2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2075): error C2059: syntax error: '{'
2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2075): error C2334: unexpected token(s) preceding '{'; skipping apparent function body
2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2081): error C2988: unrecognizable template declaration/definition
2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2081): error C2059: syntax error: 'if'
2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2081): error C2334: unexpected token(s) preceding '{'; skipping apparent function body
2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2084): error C2988: unrecognizable template declaration/definition
2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2084): error C2059: syntax error: 'return'
2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2084): error C2238: unexpected token(s) preceding ';'
2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2087): error C2255: 'friend': not allowed outside of a class definition
2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2087): error C2144: syntax error: 'bool' should be preceded by ';'
2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/beast/http/detail/type_traits.hpp(36): error C2988: unrecognizable template declaration/definition
2> C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/beast/http/detail/type_traits.hpp(41): note: see reference to class template instantiation 'boost::beast::http::detail::is_header_impl<T>' being compiled
2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/beast/http/detail/type_traits.hpp(36): error C2059: syntax error: '<end Parse>'
2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/beast/http/detail/type_traits.hpp(36): error C2334: unexpected token(s) preceding '{'; skipping apparent function body
2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/beast/http/detail/type_traits.hpp(38): error C2226: syntax error: unexpected type 'std::false_type'
2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/beast/http/detail/type_traits.hpp(38): error C2334: unexpected token(s) preceding '{'; skipping apparent function body
2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/beast/http/detail/type_traits.hpp(40): error C2760: syntax error: unexpected token '{', expected 'expression'
2> Module.PCL.cpp









share|improve this question


























    up vote
    0
    down vote

    favorite












    I am trying to create a UE4 plugin then I can simply create a blueprint function like so using Boost Beast client example :



    void UBoostBPFunctionLibrary::ConnectWebsocket(FString inMessage, FString& outResStr)
    {
    //using tcp = boost::asio::ip::tcp; // from <boost/asio/ip/tcp.hpp>
    //namespace websocket = boost::beast::websocket; // from <boost/beast/websocket.hpp>

    //auto const host = "127.0.0.1";
    //auto const port = "8080";
    //std::string text(TCHAR_TO_ANSI(*inMessage));

    //// The io_context is required for all I/O
    //boost::asio::io_context ioc;

    //// These objects perform our I/O
    //tcp::resolver resolver{ ioc };
    //websocket::stream<tcp::socket> ws{ ioc };

    //// Look up the domain name
    //auto const results = resolver.resolve(host, port);

    //// Make the connection on the IP address we get from a lookup
    //boost::asio::connect(ws.next_layer(), results.begin(), results.end());

    //// Perform the websocket handshake
    //ws.handshake(host, "/");

    //// Send the message
    //ws.write(boost::asio::buffer(std::string(text)));

    //// This buffer will hold the incoming message
    //boost::beast::multi_buffer buffer;

    //// Read a message into our buffer
    //ws.read(buffer);

    //// Close the WebSocket connection
    //ws.close(websocket::close_code::normal);

    ////// If we get here then the connection is closed gracefully
    //// // The buffers() function helps print a ConstBufferSequence
    //outResStr = FString(boost::beast::to_static_string(boost::beast::buffers(buffer.data())).c_str());
    }


    But as I try to compile simply by including the following header files in my BoostBPFunctionLibrary.h :



    #include <boost/beast/core.hpp>
    #include <boost/beast/websocket.hpp>
    #include <boost/asio/connect.hpp>
    #include <boost/asio/ip/tcp.hpp>


    I get loads of errors such as the following. I guess the errors are all pointing to the clash of check definition in "AssertionMacros.h" and any boost version of it, but the question then is how can I fix that and make it work ? Why is there no clear fundamental separation between the two definitions ? I tried to remove the boost version of "check function" as pointed by the first error line but that breaks other code files in boost, I tried to do that to UE4 and the answer is still no. I feel that there is something fundamentally wrong here. Please advice.



    2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/list.hpp(1333): error C4003: not enough arguments for function-like macro invocation 'check'
    2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/list.hpp(1333): error C2062: type 'void' unexpected
    2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/list.hpp(1405): note: see reference to class template instantiation 'boost::intrusive::list_impl<ValueTraits,SizeType,ConstantTimeSize,HeaderHolder>' being compiled
    2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/list.hpp(1333): error C2334: unexpected token(s) preceding '{'; skipping apparent function body
    2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/list.hpp(1334): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/list.hpp(1334): error C2059: syntax error: '{'
    2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/list.hpp(1334): error C2334: unexpected token(s) preceding '{'; skipping apparent function body
    2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree_algorithms.hpp(1452): warning C4002: too many arguments for function-like macro invocation 'check'
    2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree_algorithms.hpp(1452): error C2988: unrecognizable template declaration/definition
    2> C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree_algorithms.hpp(2074): note: see reference to class template instantiation 'boost::intrusive::bstree_algorithms<NodeTraits>' being compiled
    2> C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/beast/core/string.hpp(87): note: see reference to class template instantiation 'boost::basic_string_view<char,std::char_traits<char>>' being compiled
    2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree_algorithms.hpp(1452): error C2059: syntax error: '<end Parse>'
    2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree_algorithms.hpp(1452): error C2334: unexpected token(s) preceding '{'; skipping apparent function body
    2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree_algorithms.hpp(1453): error C2988: unrecognizable template declaration/definition
    2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree_algorithms.hpp(1453): error C2059: syntax error: '{'
    2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree_algorithms.hpp(1453): error C2334: unexpected token(s) preceding '{'; skipping apparent function body
    2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2074): error C4003: not enough arguments for function-like macro invocation 'check'
    2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2057): error C2988: unrecognizable template declaration/definition
    2> C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2122): note: see reference to class template instantiation 'boost::intrusive::bstree_impl<ValueTraits,VoidOrKeyOfValue,VoidOrKeyComp,SizeType,ConstantTimeSize,AlgoType,HeaderHolder>' being compiled
    2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2057): error C2059: syntax error: '<end Parse>'
    2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2057): error C2334: unexpected token(s) preceding '{'; skipping apparent function body
    2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2058): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2058): error C2988: unrecognizable template declaration/definition
    2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2058): error C2059: syntax error: '{'
    2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2058): error C2334: unexpected token(s) preceding '{'; skipping apparent function body
    2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2074): error C2062: type 'void' unexpected
    2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2074): error C2334: unexpected token(s) preceding '{'; skipping apparent function body
    2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2075): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2075): error C2988: unrecognizable template declaration/definition
    2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2075): error C2059: syntax error: '{'
    2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2075): error C2334: unexpected token(s) preceding '{'; skipping apparent function body
    2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2081): error C2988: unrecognizable template declaration/definition
    2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2081): error C2059: syntax error: 'if'
    2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2081): error C2334: unexpected token(s) preceding '{'; skipping apparent function body
    2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2084): error C2988: unrecognizable template declaration/definition
    2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2084): error C2059: syntax error: 'return'
    2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2084): error C2238: unexpected token(s) preceding ';'
    2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2087): error C2255: 'friend': not allowed outside of a class definition
    2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2087): error C2144: syntax error: 'bool' should be preceded by ';'
    2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/beast/http/detail/type_traits.hpp(36): error C2988: unrecognizable template declaration/definition
    2> C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/beast/http/detail/type_traits.hpp(41): note: see reference to class template instantiation 'boost::beast::http::detail::is_header_impl<T>' being compiled
    2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/beast/http/detail/type_traits.hpp(36): error C2059: syntax error: '<end Parse>'
    2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/beast/http/detail/type_traits.hpp(36): error C2334: unexpected token(s) preceding '{'; skipping apparent function body
    2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/beast/http/detail/type_traits.hpp(38): error C2226: syntax error: unexpected type 'std::false_type'
    2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/beast/http/detail/type_traits.hpp(38): error C2334: unexpected token(s) preceding '{'; skipping apparent function body
    2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/beast/http/detail/type_traits.hpp(40): error C2760: syntax error: unexpected token '{', expected 'expression'
    2> Module.PCL.cpp









    share|improve this question
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I am trying to create a UE4 plugin then I can simply create a blueprint function like so using Boost Beast client example :



      void UBoostBPFunctionLibrary::ConnectWebsocket(FString inMessage, FString& outResStr)
      {
      //using tcp = boost::asio::ip::tcp; // from <boost/asio/ip/tcp.hpp>
      //namespace websocket = boost::beast::websocket; // from <boost/beast/websocket.hpp>

      //auto const host = "127.0.0.1";
      //auto const port = "8080";
      //std::string text(TCHAR_TO_ANSI(*inMessage));

      //// The io_context is required for all I/O
      //boost::asio::io_context ioc;

      //// These objects perform our I/O
      //tcp::resolver resolver{ ioc };
      //websocket::stream<tcp::socket> ws{ ioc };

      //// Look up the domain name
      //auto const results = resolver.resolve(host, port);

      //// Make the connection on the IP address we get from a lookup
      //boost::asio::connect(ws.next_layer(), results.begin(), results.end());

      //// Perform the websocket handshake
      //ws.handshake(host, "/");

      //// Send the message
      //ws.write(boost::asio::buffer(std::string(text)));

      //// This buffer will hold the incoming message
      //boost::beast::multi_buffer buffer;

      //// Read a message into our buffer
      //ws.read(buffer);

      //// Close the WebSocket connection
      //ws.close(websocket::close_code::normal);

      ////// If we get here then the connection is closed gracefully
      //// // The buffers() function helps print a ConstBufferSequence
      //outResStr = FString(boost::beast::to_static_string(boost::beast::buffers(buffer.data())).c_str());
      }


      But as I try to compile simply by including the following header files in my BoostBPFunctionLibrary.h :



      #include <boost/beast/core.hpp>
      #include <boost/beast/websocket.hpp>
      #include <boost/asio/connect.hpp>
      #include <boost/asio/ip/tcp.hpp>


      I get loads of errors such as the following. I guess the errors are all pointing to the clash of check definition in "AssertionMacros.h" and any boost version of it, but the question then is how can I fix that and make it work ? Why is there no clear fundamental separation between the two definitions ? I tried to remove the boost version of "check function" as pointed by the first error line but that breaks other code files in boost, I tried to do that to UE4 and the answer is still no. I feel that there is something fundamentally wrong here. Please advice.



      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/list.hpp(1333): error C4003: not enough arguments for function-like macro invocation 'check'
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/list.hpp(1333): error C2062: type 'void' unexpected
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/list.hpp(1405): note: see reference to class template instantiation 'boost::intrusive::list_impl<ValueTraits,SizeType,ConstantTimeSize,HeaderHolder>' being compiled
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/list.hpp(1333): error C2334: unexpected token(s) preceding '{'; skipping apparent function body
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/list.hpp(1334): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/list.hpp(1334): error C2059: syntax error: '{'
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/list.hpp(1334): error C2334: unexpected token(s) preceding '{'; skipping apparent function body
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree_algorithms.hpp(1452): warning C4002: too many arguments for function-like macro invocation 'check'
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree_algorithms.hpp(1452): error C2988: unrecognizable template declaration/definition
      2> C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree_algorithms.hpp(2074): note: see reference to class template instantiation 'boost::intrusive::bstree_algorithms<NodeTraits>' being compiled
      2> C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/beast/core/string.hpp(87): note: see reference to class template instantiation 'boost::basic_string_view<char,std::char_traits<char>>' being compiled
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree_algorithms.hpp(1452): error C2059: syntax error: '<end Parse>'
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree_algorithms.hpp(1452): error C2334: unexpected token(s) preceding '{'; skipping apparent function body
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree_algorithms.hpp(1453): error C2988: unrecognizable template declaration/definition
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree_algorithms.hpp(1453): error C2059: syntax error: '{'
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree_algorithms.hpp(1453): error C2334: unexpected token(s) preceding '{'; skipping apparent function body
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2074): error C4003: not enough arguments for function-like macro invocation 'check'
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2057): error C2988: unrecognizable template declaration/definition
      2> C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2122): note: see reference to class template instantiation 'boost::intrusive::bstree_impl<ValueTraits,VoidOrKeyOfValue,VoidOrKeyComp,SizeType,ConstantTimeSize,AlgoType,HeaderHolder>' being compiled
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2057): error C2059: syntax error: '<end Parse>'
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2057): error C2334: unexpected token(s) preceding '{'; skipping apparent function body
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2058): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2058): error C2988: unrecognizable template declaration/definition
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2058): error C2059: syntax error: '{'
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2058): error C2334: unexpected token(s) preceding '{'; skipping apparent function body
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2074): error C2062: type 'void' unexpected
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2074): error C2334: unexpected token(s) preceding '{'; skipping apparent function body
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2075): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2075): error C2988: unrecognizable template declaration/definition
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2075): error C2059: syntax error: '{'
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2075): error C2334: unexpected token(s) preceding '{'; skipping apparent function body
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2081): error C2988: unrecognizable template declaration/definition
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2081): error C2059: syntax error: 'if'
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2081): error C2334: unexpected token(s) preceding '{'; skipping apparent function body
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2084): error C2988: unrecognizable template declaration/definition
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2084): error C2059: syntax error: 'return'
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2084): error C2238: unexpected token(s) preceding ';'
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2087): error C2255: 'friend': not allowed outside of a class definition
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2087): error C2144: syntax error: 'bool' should be preceded by ';'
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/beast/http/detail/type_traits.hpp(36): error C2988: unrecognizable template declaration/definition
      2> C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/beast/http/detail/type_traits.hpp(41): note: see reference to class template instantiation 'boost::beast::http::detail::is_header_impl<T>' being compiled
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/beast/http/detail/type_traits.hpp(36): error C2059: syntax error: '<end Parse>'
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/beast/http/detail/type_traits.hpp(36): error C2334: unexpected token(s) preceding '{'; skipping apparent function body
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/beast/http/detail/type_traits.hpp(38): error C2226: syntax error: unexpected type 'std::false_type'
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/beast/http/detail/type_traits.hpp(38): error C2334: unexpected token(s) preceding '{'; skipping apparent function body
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/beast/http/detail/type_traits.hpp(40): error C2760: syntax error: unexpected token '{', expected 'expression'
      2> Module.PCL.cpp









      share|improve this question













      I am trying to create a UE4 plugin then I can simply create a blueprint function like so using Boost Beast client example :



      void UBoostBPFunctionLibrary::ConnectWebsocket(FString inMessage, FString& outResStr)
      {
      //using tcp = boost::asio::ip::tcp; // from <boost/asio/ip/tcp.hpp>
      //namespace websocket = boost::beast::websocket; // from <boost/beast/websocket.hpp>

      //auto const host = "127.0.0.1";
      //auto const port = "8080";
      //std::string text(TCHAR_TO_ANSI(*inMessage));

      //// The io_context is required for all I/O
      //boost::asio::io_context ioc;

      //// These objects perform our I/O
      //tcp::resolver resolver{ ioc };
      //websocket::stream<tcp::socket> ws{ ioc };

      //// Look up the domain name
      //auto const results = resolver.resolve(host, port);

      //// Make the connection on the IP address we get from a lookup
      //boost::asio::connect(ws.next_layer(), results.begin(), results.end());

      //// Perform the websocket handshake
      //ws.handshake(host, "/");

      //// Send the message
      //ws.write(boost::asio::buffer(std::string(text)));

      //// This buffer will hold the incoming message
      //boost::beast::multi_buffer buffer;

      //// Read a message into our buffer
      //ws.read(buffer);

      //// Close the WebSocket connection
      //ws.close(websocket::close_code::normal);

      ////// If we get here then the connection is closed gracefully
      //// // The buffers() function helps print a ConstBufferSequence
      //outResStr = FString(boost::beast::to_static_string(boost::beast::buffers(buffer.data())).c_str());
      }


      But as I try to compile simply by including the following header files in my BoostBPFunctionLibrary.h :



      #include <boost/beast/core.hpp>
      #include <boost/beast/websocket.hpp>
      #include <boost/asio/connect.hpp>
      #include <boost/asio/ip/tcp.hpp>


      I get loads of errors such as the following. I guess the errors are all pointing to the clash of check definition in "AssertionMacros.h" and any boost version of it, but the question then is how can I fix that and make it work ? Why is there no clear fundamental separation between the two definitions ? I tried to remove the boost version of "check function" as pointed by the first error line but that breaks other code files in boost, I tried to do that to UE4 and the answer is still no. I feel that there is something fundamentally wrong here. Please advice.



      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/list.hpp(1333): error C4003: not enough arguments for function-like macro invocation 'check'
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/list.hpp(1333): error C2062: type 'void' unexpected
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/list.hpp(1405): note: see reference to class template instantiation 'boost::intrusive::list_impl<ValueTraits,SizeType,ConstantTimeSize,HeaderHolder>' being compiled
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/list.hpp(1333): error C2334: unexpected token(s) preceding '{'; skipping apparent function body
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/list.hpp(1334): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/list.hpp(1334): error C2059: syntax error: '{'
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/list.hpp(1334): error C2334: unexpected token(s) preceding '{'; skipping apparent function body
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree_algorithms.hpp(1452): warning C4002: too many arguments for function-like macro invocation 'check'
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree_algorithms.hpp(1452): error C2988: unrecognizable template declaration/definition
      2> C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree_algorithms.hpp(2074): note: see reference to class template instantiation 'boost::intrusive::bstree_algorithms<NodeTraits>' being compiled
      2> C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/beast/core/string.hpp(87): note: see reference to class template instantiation 'boost::basic_string_view<char,std::char_traits<char>>' being compiled
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree_algorithms.hpp(1452): error C2059: syntax error: '<end Parse>'
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree_algorithms.hpp(1452): error C2334: unexpected token(s) preceding '{'; skipping apparent function body
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree_algorithms.hpp(1453): error C2988: unrecognizable template declaration/definition
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree_algorithms.hpp(1453): error C2059: syntax error: '{'
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree_algorithms.hpp(1453): error C2334: unexpected token(s) preceding '{'; skipping apparent function body
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2074): error C4003: not enough arguments for function-like macro invocation 'check'
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2057): error C2988: unrecognizable template declaration/definition
      2> C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2122): note: see reference to class template instantiation 'boost::intrusive::bstree_impl<ValueTraits,VoidOrKeyOfValue,VoidOrKeyComp,SizeType,ConstantTimeSize,AlgoType,HeaderHolder>' being compiled
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2057): error C2059: syntax error: '<end Parse>'
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2057): error C2334: unexpected token(s) preceding '{'; skipping apparent function body
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2058): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2058): error C2988: unrecognizable template declaration/definition
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2058): error C2059: syntax error: '{'
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2058): error C2334: unexpected token(s) preceding '{'; skipping apparent function body
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2074): error C2062: type 'void' unexpected
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2074): error C2334: unexpected token(s) preceding '{'; skipping apparent function body
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2075): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2075): error C2988: unrecognizable template declaration/definition
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2075): error C2059: syntax error: '{'
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2075): error C2334: unexpected token(s) preceding '{'; skipping apparent function body
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2081): error C2988: unrecognizable template declaration/definition
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2081): error C2059: syntax error: 'if'
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2081): error C2334: unexpected token(s) preceding '{'; skipping apparent function body
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2084): error C2988: unrecognizable template declaration/definition
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2084): error C2059: syntax error: 'return'
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2084): error C2238: unexpected token(s) preceding ';'
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2087): error C2255: 'friend': not allowed outside of a class definition
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/intrusive/bstree.hpp(2087): error C2144: syntax error: 'bool' should be preceded by ';'
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/beast/http/detail/type_traits.hpp(36): error C2988: unrecognizable template declaration/definition
      2> C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/beast/http/detail/type_traits.hpp(41): note: see reference to class template instantiation 'boost::beast::http::detail::is_header_impl<T>' being compiled
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/beast/http/detail/type_traits.hpp(36): error C2059: syntax error: '<end Parse>'
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/beast/http/detail/type_traits.hpp(36): error C2334: unexpected token(s) preceding '{'; skipping apparent function body
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/beast/http/detail/type_traits.hpp(38): error C2226: syntax error: unexpected type 'std::false_type'
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/beast/http/detail/type_traits.hpp(38): error C2334: unexpected token(s) preceding '{'; skipping apparent function body
      2>C:UsersAlam SyedDocumentsUnreal ProjectsSomeProjectPluginsPCLSourcePCLBoostincludeboost-rootboost/beast/http/detail/type_traits.hpp(40): error C2760: syntax error: unexpected token '{', expected 'expression'
      2> Module.PCL.cpp






      c++ boost unreal-engine4 boost-beast






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 9 at 17:29









      Syed Alam Abbas

      257315




      257315
























          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote



          accepted










          There is an answer - a sort of explanation as to why this is happening in unreal Engine forums for library macro conflicts. There is a dirty work around will try that.






          share|improve this answer





















            Your Answer






            StackExchange.ifUsing("editor", function () {
            StackExchange.using("externalEditor", function () {
            StackExchange.using("snippets", function () {
            StackExchange.snippets.init();
            });
            });
            }, "code-snippets");

            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "1"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














             

            draft saved


            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53230652%2fboost-beast-integration-issues-in-ue4-plugin%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote



            accepted










            There is an answer - a sort of explanation as to why this is happening in unreal Engine forums for library macro conflicts. There is a dirty work around will try that.






            share|improve this answer

























              up vote
              0
              down vote



              accepted










              There is an answer - a sort of explanation as to why this is happening in unreal Engine forums for library macro conflicts. There is a dirty work around will try that.






              share|improve this answer























                up vote
                0
                down vote



                accepted







                up vote
                0
                down vote



                accepted






                There is an answer - a sort of explanation as to why this is happening in unreal Engine forums for library macro conflicts. There is a dirty work around will try that.






                share|improve this answer












                There is an answer - a sort of explanation as to why this is happening in unreal Engine forums for library macro conflicts. There is a dirty work around will try that.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 14 at 23:49









                Syed Alam Abbas

                257315




                257315






























                     

                    draft saved


                    draft discarded



















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53230652%2fboost-beast-integration-issues-in-ue4-plugin%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Guess what letter conforming each word

                    Port of Spain

                    Run scheduled task as local user group (not BUILTIN)