Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gcc-cobol
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
COBOLworx
gcc-cobol
Commits
ac5d63a4
Unverified
Commit
ac5d63a4
authored
1 year ago
by
Arsen Arsenović
Committed by
Arsen Arsenović
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
libstdc++: fix _V badname in <generator>
libstdc++-v3/ChangeLog: * include/std/generator: Fix _V badname.
parent
5be2313b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libstdc++-v3/include/std/generator
+10
-8
10 additions, 8 deletions
libstdc++-v3/include/std/generator
with
10 additions
and
8 deletions
libstdc++-v3/include/std/generator
+
10
−
8
View file @
ac5d63a4
...
@@ -76,14 +76,14 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
...
@@ -76,14 +76,14 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
* @headerfile generator
* @headerfile generator
* @since C++23
* @since C++23
*/
*/
template<typename _Ref, typename _V = void, typename _Alloc = void>
template<typename _Ref, typename _V
al
= void, typename _Alloc = void>
class generator;
class generator;
/// @cond undocumented
/// @cond undocumented
namespace __gen
namespace __gen
{
{
/// _Reference type for a generator whose reference (first argument) and
/// _Reference type for a generator whose reference (first argument) and
/// value (second argument) types are _Ref and _V.
/// value (second argument) types are _Ref and _V
al
.
template<typename _Ref, typename _Val>
template<typename _Ref, typename _Val>
using _Reference_t = __conditional_t<is_void_v<_Val>,
using _Reference_t = __conditional_t<is_void_v<_Val>,
_Ref&&, _Ref>;
_Ref&&, _Ref>;
...
@@ -642,14 +642,16 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
...
@@ -642,14 +642,16 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
} // namespace __gen
} // namespace __gen
/// @endcond
/// @endcond
template<typename _Ref, typename _V, typename _Alloc>
template<typename _Ref, typename _V
al
, typename _Alloc>
class generator
class generator
: public ranges::view_interface<generator<_Ref, _V, _Alloc>>
: public ranges::view_interface<generator<_Ref, _V
al
, _Alloc>>
{
{
using _Value = __conditional_t<is_void_v<_V>, remove_cvref_t<_Ref>, _V>;
using _Value = __conditional_t<is_void_v<_Val>,
remove_cvref_t<_Ref>,
_Val>;
static_assert(__gen::_Cv_unqualified_object<_Value>,
static_assert(__gen::_Cv_unqualified_object<_Value>,
"Generator value must be a cv-unqualified object type");
"Generator value must be a cv-unqualified object type");
using _Reference = __gen::_Reference_t<_Ref, _V>;
using _Reference = __gen::_Reference_t<_Ref, _V
al
>;
static_assert(is_reference_v<_Reference>
static_assert(is_reference_v<_Reference>
|| (__gen::_Cv_unqualified_object<_Reference>
|| (__gen::_Cv_unqualified_object<_Reference>
&& copy_constructible<_Reference>),
&& copy_constructible<_Reference>),
...
@@ -737,8 +739,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
...
@@ -737,8 +739,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
bool _M_began = false;
bool _M_began = false;
};
};
template<class _Ref, class _V, class _Alloc>
template<class _Ref, class _V
al
, class _Alloc>
struct generator<_Ref, _V, _Alloc>::_Iterator
struct generator<_Ref, _V
al
, _Alloc>::_Iterator
{
{
using value_type = _Value;
using value_type = _Value;
using difference_type = ptrdiff_t;
using difference_type = ptrdiff_t;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment