You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
defdefault_cppstd(conanfile, compiler=None, compiler_version=None):
""" Get the default ``compiler.cppstd`` for the "conanfile.settings.compiler" and "conanfile settings.compiler_version" or for the parameters "compiler" and "compiler_version" if specified. :param conanfile: The current recipe object. Always use ``self``. :param compiler: Name of the compiler e.g. gcc :param compiler_version: Version of the compiler e.g. 12 :return: The default ``compiler.cppstd`` for the specified compiler """fromconans.client.conf.detectimport_cppstd_defaultcompiler=compilerorconanfile.settings.get_safe("compiler")
compiler_version=compiler_versionorconanfile.settings.get_safe("compiler.version")
ifnotcompilerornotcompiler_version:
raiseConanException("Called default_cppstd with no compiler or no compiler.version")
return_cppstd_default(compiler, Version(compiler_version))
Method _cppstd_default does not exist anywhere, therefore None is always returned.
The text was updated successfully, but these errors were encountered:
No, please don't close it, the idea is that this function was there as part of the upgrade of tools, but you are right this code is not even tested, so we should have a look.
Environment Details (include every applicable attribute)
Description
Conan v1.53.0 default cppstd is not working. It returns
None
due to the call of the non-existent_cppstd_default
method.See the definition:
Method
_cppstd_default
does not exist anywhere, thereforeNone
is always returned.The text was updated successfully, but these errors were encountered: