Skip to content

Error in MSVC2010 when using named arguments #188

Closed
@vitaut

Description

@vitaut
C:\cppformat\format.h(864): error C2664: 'fmt::internal::check' : cannot convert parameter 1 from 'const fmt::internal::NamedArg<Char>' to 'bool'
          with
          [
              Char=char
          ]
          No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
          C:\cppformat\format.h(2968) : see reference to class template instantiation 'fmt::internal::IsConvertibleToInt<T>' being compiled
          with
          [
              T=fmt::internal::NamedArg<char>
          ]
          format-test.cc(636) : see reference to function template instantiation 'std::string fmt::format<fmt::internal::NamedArg<Char>,fmt::internal::NamedArg<Char>,fmt::internal::NamedArg<Char>>(fmt::CStringRef,const T0 &,const T1 &,const T2 &)' being compiled
          with
          [
              Char=char,
              T0=fmt::internal::NamedArg<char>,
              T1=fmt::internal::NamedArg<char>,
              T2=fmt::internal::NamedArg<char>
          ]
C:\cppformat\format.h(864): error C2056: illegal expression

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions