Skip to content

serversocket.cpp fails to compile with MSVC v141 — unqualified LogString (missing using namespace LOG4CXX_NS;) #718

Description

@qjoyel

File: src/main/cpp/serversocket.cpp (L60). Affects versions > 1.4.0

The file only does using namespace LOG4CXX_NS::helpers;, but LogString lives in the parent namespace LOG4CXX_NS and is used unqualified in ServerSocket::create(). Stricter compilers fail to resolve it.

Environment: MSVC 19.16.27054.0, toolset v141 (host x86), Win32, Windows SDK 10.0.19041.0, C++17.

Fix: add the parent namespace:

using namespace LOG4CXX_NS;
using namespace LOG4CXX_NS::helpers;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions