Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8855475
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T14:08:40+00:00 2026-06-14T14:08:40+00:00

I have a boost socket implementation and it works perfectly on Windows & Linux,

  • 0

I have a boost socket implementation and it works perfectly on Windows & Linux, but on mac the same code gets a bunch of compilation errors such as.

src/modules/socket/ssl_tcp_socket_binding.cpp: In constructor 
'ti::SecureTCPSocket::SecureTCPSocket(tide::Host*, ti::TCPSocketBinding*)':
src/modules/socket/ssl_tcp_socket_binding.cpp:27: error: class 'ti::SecureTCPSocket' does not have any field named 'Socket'
src/modules/socket/ssl_tcp_socket_binding.cpp:29: error: no matching function for call to 'ti::Socket<boost::asio::ssl::stream<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::stream_socket_service<boost::asio::ip::tcp> >&> >::Socket()'

Constructor

SecureTCPSocket::SecureTCPSocket(Host *host, TCPSocketBinding * tcp_socket_binding)
        : Socket(host, string("Socket.SecureTCPSocket")),

Header

class SecureTCPSocket
        : public Socket<boost::asio::ssl::stream<tcp::socket&> >
    {

I don’t understand why this is an issue on Mac’s but perfectly fine on Linux & Windows?

Any idea as to what I may be doing wrong or missing?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T14:08:42+00:00Added an answer on June 14, 2026 at 2:08 pm

    When you mentioning a class template different than the one you are currently implementing, you have to specify the template arguments. Unless it is a copy&paste error, you need to use

    SecureTCPSocket::SecureTCPSocket(Host *host, TCPSocketBinding * tcp_socket_binding)
        : Socket<boost::asio::ssl::stream<tcp::socket&> >(host,
                                                          string("Socket.SecureTCPSocket")),
          ...
    

    In fact, the error message indicates that need: it states that it doesn’t know what Socket is and continues to state that there is no matching constructor for the instantiation Socket<boost::asio::ssl::stream<tcp::socket&> > (well, a more expanded version thereof).

    The question in this case actually isn’t why the compiler used on Mac (clang?) doesn’t compile the code but rather why the compilers used on Windows and Linux do compile the code!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following code in ANSII: boost::asio::streambuf buffer; std::ostream oss(&buffer); boost::asio::async_write(socket_, buffer, strand_.wrap(
Boost asio has such socket connect api . I have such simple code: try
I have some socket connection code that makes use of boost::asio which reads from
I have small piece of code boost::asio::ip::tcp::no_delay option(true); boost::asio::ip::tcp::socket* sock = new boost::asio::ip::tcp::socket(ios); sock->set_option(option);
I have introduced boost to our code base, on my machine I created a
I have a socket server, written in C++ using boost::asio, and I'm sending data
I have an ip::udp::socket constructed with an io_service . There is only one boost::thread
i have a problem with data transfert in boost::asio. with the following code :
I have this piece of code as part of a socks5 proxy server implementation.
I have a boost::asio based server which works fine, except that I'm trying to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.