Clarify codecvt comment
[SVN r73213]
This commit is contained in:
parent
0d6af9221d
commit
56f9f0ce5f
@ -95,7 +95,7 @@ namespace filesystem3
|
|||||||
// TODO: rules needed for operating systems that use / or .
|
// TODO: rules needed for operating systems that use / or .
|
||||||
// differently, or format directory paths differently from file paths.
|
// differently, or format directory paths differently from file paths.
|
||||||
//
|
//
|
||||||
// ************************************************************************
|
// **********************************************************************************
|
||||||
//
|
//
|
||||||
// More work needed: How to handle an operating system that may have
|
// More work needed: How to handle an operating system that may have
|
||||||
// slash characters or dot characters in valid filenames, either because
|
// slash characters or dot characters in valid filenames, either because
|
||||||
@ -107,7 +107,7 @@ namespace filesystem3
|
|||||||
// ^^^^
|
// ^^^^
|
||||||
// Note that 0x2F is the ASCII slash character
|
// Note that 0x2F is the ASCII slash character
|
||||||
//
|
//
|
||||||
// ************************************************************************
|
// **********************************************************************************
|
||||||
|
|
||||||
// Supported source arguments: half-open iterator range, container, c-array,
|
// Supported source arguments: half-open iterator range, container, c-array,
|
||||||
// and single pointer to null terminated string.
|
// and single pointer to null terminated string.
|
||||||
@ -116,9 +116,9 @@ namespace filesystem3
|
|||||||
// multi-byte character strings which may have embedded nulls. Embedded null
|
// multi-byte character strings which may have embedded nulls. Embedded null
|
||||||
// support is required for some Asian languages on Windows.
|
// support is required for some Asian languages on Windows.
|
||||||
|
|
||||||
// "const codecvt_type& cvt=codecvt()" default arguments are not used because some
|
// [defaults] "const codecvt_type& cvt=codecvt()" default arguments are not used
|
||||||
// compilers, such as Microsoft prior to VC++ 10, do not handle defaults correctly
|
// because some compilers, such as Microsoft prior to VC++ 10, do not handle defaults
|
||||||
// in templates.
|
// correctly in templates.
|
||||||
|
|
||||||
// ----- constructors -----
|
// ----- constructors -----
|
||||||
|
|
||||||
@ -147,7 +147,7 @@ namespace filesystem3
|
|||||||
|
|
||||||
template <class Source>
|
template <class Source>
|
||||||
path(Source const& source, const codecvt_type& cvt)
|
path(Source const& source, const codecvt_type& cvt)
|
||||||
// see note above explaining why codecvt() default arguments are not used
|
// see [defaults] note above explaining why codecvt() default arguments are not used
|
||||||
{
|
{
|
||||||
path_traits::dispatch(source, m_pathname, cvt);
|
path_traits::dispatch(source, m_pathname, cvt);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user