diff options
author | Caleb Palmer <cnpalmer@us.ibm.com> | 2016-06-08 15:53:55 -0500 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2016-06-09 11:33:39 -0400 |
commit | b8982ac610060d9bb37ec7a4bae9855277b4dc32 (patch) | |
tree | f98e2c612a16799382294de0524a6ec2cb64d537 /src/include/utility | |
parent | 99b208e603f508422bd68986d64b7544495fe821 (diff) | |
download | talos-hostboot-b8982ac610060d9bb37ec7a4bae9855277b4dc32.tar.gz talos-hostboot-b8982ac610060d9bb37ec7a4bae9855277b4dc32.zip |
Make constructors in std::pair declaration constexpr
Change-Id: I4c21daa71fdb8b99a82de90c71cc466eb955c203
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/25530
Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com>
Tested-by: Jenkins Server
Tested-by: FSP CI Jenkins
Reviewed-by: A. P. Williams III <iawillia@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/include/utility')
-rw-r--r-- | src/include/utility | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/include/utility b/src/include/utility index e680f669e..b7f282d6a 100644 --- a/src/include/utility +++ b/src/include/utility @@ -5,7 +5,7 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2011,2015 */ +/* Contributors Listed Below - COPYRIGHT 2011,2016 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -41,8 +41,8 @@ namespace std T1 first; T2 second; - pair() : first(T1()), second(T2()) {} - pair(const T1 & x, const T2 & y) : first(x), second(y) {} + constexpr pair() : first(T1()), second(T2()) {} + constexpr pair(const T1 & x, const T2 & y) : first(x), second(y) {} template <typename U, typename V> pair (const pair<U,V> & p) : first(p.first), second(p.second) {} |