summaryrefslogtreecommitdiffstats
path: root/src/include/utility
diff options
context:
space:
mode:
authorCaleb Palmer <cnpalmer@us.ibm.com>2016-06-08 15:53:55 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2016-06-09 11:33:39 -0400
commitb8982ac610060d9bb37ec7a4bae9855277b4dc32 (patch)
treef98e2c612a16799382294de0524a6ec2cb64d537 /src/include/utility
parent99b208e603f508422bd68986d64b7544495fe821 (diff)
downloadtalos-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/utility6
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) {}
OpenPOWER on IntegriCloud