Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
glow
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
77
Issues
77
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Glow
glow
Commits
912d4f58
Commit
912d4f58
authored
May 20, 2020
by
Philip Trettner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trying to appease msvc
parent
aebe21aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
src/glow/common/array_view.hh
src/glow/common/array_view.hh
+6
-6
No files found.
src/glow/common/array_view.hh
View file @
912d4f58
...
...
@@ -94,19 +94,19 @@ private:
size_t
_size
=
0
;
};
namespace
detail
{
template
<
class
Range
>
constexpr
bool
can_make_array_view
=
convertible_to_array_view
<
Range
,
void
const
>
;
}
template
<
class
Range
,
class
=
std
::
enable_if_t
<
detail
::
can_make_array_view
<
Range
>
>>
auto
make_array_view
(
Range
&&
r
)
{
using
T
=
std
::
remove_reference_t
<
decltype
(
r
.
data
()[
0
])
>
;
return
array_view
<
T
>
(
std
::
forward
<
Range
>
(
r
));
}
namespace
detail
{
template
<
class
Range
>
constexpr
bool
can_make_array_view
=
convertible_to_array_view
<
Range
,
void
const
>
;
}
template
<
class
T
>
array_view
<
std
::
byte
const
>
as_byte_view
(
T
const
&
v
)
{
...
...
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