Skip to content

Bogus "no suitable conversion" error in Intellisense on Mac/clang #1395

@zajo

Description

@zajo

I got this error from Intellisense:

On this source line:

shared_ptr<connection_list> cl=tlsd.cl_.lock();

Intellisense says:

no suitable user-defined conversion from
"boost::shared_ptr<boost::synapse::synapse_detail::thread_local_signal_data::connection_list>" to
"boost::shared_ptr<boost::synapse::synapse_detail::thread_local_signal_data::connection_list>" exists

The compiler itself doesn't issue an error. Somehow Intellisense succeeded deducing the same correct fully qualified name for both the type of cl and the return type of tlsd.cl_.lock(), but then it erroneously decided they differ.

VSCode version 1.19.1 (1.19.1), 0759f77bb8d86658bc935a10a64f6182c5a1eeba, C/C++ extension version 0.14.5, Apple LLVM version 9.0.0 (clang-900.0.39.2).

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Language ServicebugfixedCheck the Milestone for the release in which the fix is or will be available.parser

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions