What is the purpose of the statement “(void)c;”?

后端 未结 3 1791
我在风中等你
我在风中等你 2020-12-10 02:06

Sorry for the vague title, but not really sure how to phrase it. So I was looking through the innards of boost::asio (trying to track down some ridiculous delays), and I not

3条回答
  •  悲&欢浪女
    2020-12-10 02:49

    It's probably there because it's a cross-platform method of getting the compiler not to complain about an unused variable.

提交回复
热议问题