Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
glslang
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
glslang
Commits
97ee5c88
Commit
97ee5c88
authored
Apr 30, 2020
by
John Kessenich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix #2201: Improve const and copy constructor for TVarLivePair.
parent
39281fb7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
iomapper.h
glslang/MachineIndependent/iomapper.h
+2
-1
No files found.
glslang/MachineIndependent/iomapper.h
View file @
97ee5c88
...
@@ -238,12 +238,13 @@ typedef std::map<TString, TVarEntryInfo> TVarLiveMap;
...
@@ -238,12 +238,13 @@ typedef std::map<TString, TVarEntryInfo> TVarLiveMap;
// In the future, if the vc++ compiler can handle such a situation,
// In the future, if the vc++ compiler can handle such a situation,
// this part of the code will be removed.
// this part of the code will be removed.
struct
TVarLivePair
:
std
::
pair
<
const
TString
,
TVarEntryInfo
>
{
struct
TVarLivePair
:
std
::
pair
<
const
TString
,
TVarEntryInfo
>
{
TVarLivePair
(
std
::
pair
<
const
TString
,
TVarEntryInfo
>&
_Right
)
:
pair
(
_Right
.
first
,
_Right
.
second
)
{}
TVarLivePair
(
const
std
::
pair
<
const
TString
,
TVarEntryInfo
>&
_Right
)
:
pair
(
_Right
.
first
,
_Right
.
second
)
{}
TVarLivePair
&
operator
=
(
const
TVarLivePair
&
_Right
)
{
TVarLivePair
&
operator
=
(
const
TVarLivePair
&
_Right
)
{
const_cast
<
TString
&>
(
first
)
=
_Right
.
first
;
const_cast
<
TString
&>
(
first
)
=
_Right
.
first
;
second
=
_Right
.
second
;
second
=
_Right
.
second
;
return
(
*
this
);
return
(
*
this
);
}
}
TVarLivePair
(
const
TVarLivePair
&
src
)
{
*
this
=
src
;
}
};
};
typedef
std
::
vector
<
TVarLivePair
>
TVarLiveVector
;
typedef
std
::
vector
<
TVarLivePair
>
TVarLiveVector
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment