Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
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
lvzhengyang
riscv-gcc-1
Commits
d0cad9fe
Commit
d0cad9fe
authored
May 13, 2015
by
Jonathan Wakely
Committed by
Jonathan Wakely
May 13, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* include/std/complex (polar): Check for negative rho (LWG 2459).
From-SVN: r223159
parent
ac68f97c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletions
+6
-1
libstdc++-v3/ChangeLog
+2
-0
libstdc++-v3/include/std/complex
+4
-1
No files found.
libstdc++-v3/ChangeLog
View file @
d0cad9fe
2015-05-13 Jonathan Wakely <jwakely@redhat.com>
* include/std/complex (polar): Check for negative rho (LWG 2459).
* include/experimental/tuple (apply): Handle pointers to member (LWG
2418).
* include/std/functional (_Mem_fn_base): Make constructors constexpr.
...
...
libstdc++-v3/include/std/complex
View file @
d0cad9fe
...
...
@@ -667,7 +667,10 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
template<typename _Tp>
inline complex<_Tp>
polar(const _Tp& __rho, const _Tp& __theta)
{ return complex<_Tp>(__rho * cos(__theta), __rho * sin(__theta)); }
{
_GLIBCXX_DEBUG_ASSERT( __rho >= 0 );
return complex<_Tp>(__rho * cos(__theta), __rho * sin(__theta));
}
template<typename _Tp>
inline complex<_Tp>
...
...
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