summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '3rdParty/Boost/src/boost/utility/value_init.hpp')
-rw-r--r--3rdParty/Boost/src/boost/utility/value_init.hpp29
1 files changed, 26 insertions, 3 deletions
diff --git a/3rdParty/Boost/src/boost/utility/value_init.hpp b/3rdParty/Boost/src/boost/utility/value_init.hpp
index 5de9585..9d8de70 100644
--- a/3rdParty/Boost/src/boost/utility/value_init.hpp
+++ b/3rdParty/Boost/src/boost/utility/value_init.hpp
@@ -34,5 +34,4 @@
#ifdef BOOST_MSVC
#pragma warning(push)
-#if _MSC_VER >= 1310
// It is safe to ignore the following warning from MSVC 7.1 or higher:
// "warning C4351: new behavior: elements of array will be default initialized"
@@ -42,5 +41,4 @@
#pragma warning(disable: 4512)
#endif
-#endif
#ifdef BOOST_NO_COMPLETE_VALUE_INITIALIZATION
@@ -74,4 +72,5 @@ class initialized
remove_const<T>::type data;
+ BOOST_GPU_ENABLED
wrapper()
:
@@ -80,4 +79,5 @@ class initialized
}
+ BOOST_GPU_ENABLED
wrapper(T const & arg)
:
@@ -93,4 +93,5 @@ class initialized
aligned_storage<sizeof(wrapper), alignment_of<wrapper>::value>::type x;
+ BOOST_GPU_ENABLED
wrapper * wrapper_address() const
{
@@ -100,4 +101,5 @@ class initialized
public :
+ BOOST_GPU_ENABLED
initialized()
{
@@ -108,4 +110,5 @@ class initialized
}
+ BOOST_GPU_ENABLED
initialized(initialized const & arg)
{
@@ -113,4 +116,5 @@ class initialized
}
+ BOOST_GPU_ENABLED
explicit initialized(T const & arg)
{
@@ -118,4 +122,5 @@ class initialized
}
+ BOOST_GPU_ENABLED
initialized & operator=(initialized const & arg)
{
@@ -126,4 +131,5 @@ class initialized
}
+ BOOST_GPU_ENABLED
~initialized()
{
@@ -131,4 +137,5 @@ class initialized
}
+ BOOST_GPU_ENABLED
T const & data() const
{
@@ -136,4 +143,5 @@ class initialized
}
+ BOOST_GPU_ENABLED
T& data()
{
@@ -141,4 +149,5 @@ class initialized
}
+ BOOST_GPU_ENABLED
void swap(initialized & arg)
{
@@ -146,4 +155,5 @@ class initialized
}
+ BOOST_GPU_ENABLED
operator T const &() const
{
@@ -151,4 +161,5 @@ class initialized
}
+ BOOST_GPU_ENABLED
operator T&()
{
@@ -159,4 +170,5 @@ class initialized
template<class T>
+BOOST_GPU_ENABLED
T const& get ( initialized<T> const& x )
{
@@ -165,4 +177,5 @@ T const& get ( initialized<T> const& x )
template<class T>
+BOOST_GPU_ENABLED
T& get ( initialized<T>& x )
{
@@ -171,4 +184,5 @@ T& get ( initialized<T>& x )
template<class T>
+BOOST_GPU_ENABLED
void swap ( initialized<T> & lhs, initialized<T> & rhs )
{
@@ -186,4 +200,5 @@ class value_initialized
public :
+ BOOST_GPU_ENABLED
value_initialized()
:
@@ -191,4 +206,5 @@ class value_initialized
{ }
+ BOOST_GPU_ENABLED
T const & data() const
{
@@ -196,4 +212,5 @@ class value_initialized
}
+ BOOST_GPU_ENABLED
T& data()
{
@@ -201,4 +218,5 @@ class value_initialized
}
+ BOOST_GPU_ENABLED
void swap(value_initialized & arg)
{
@@ -206,4 +224,5 @@ class value_initialized
}
+ BOOST_GPU_ENABLED
operator T const &() const
{
@@ -211,4 +230,5 @@ class value_initialized
}
+ BOOST_GPU_ENABLED
operator T&()
{
@@ -219,4 +239,5 @@ class value_initialized
template<class T>
+BOOST_GPU_ENABLED
T const& get ( value_initialized<T> const& x )
{
@@ -225,4 +246,5 @@ T const& get ( value_initialized<T> const& x )
template<class T>
+BOOST_GPU_ENABLED
T& get ( value_initialized<T>& x )
{
@@ -231,4 +253,5 @@ T& get ( value_initialized<T>& x )
template<class T>
+BOOST_GPU_ENABLED
void swap ( value_initialized<T> & lhs, value_initialized<T> & rhs )
{
@@ -241,5 +264,5 @@ class initialized_value_t
public :
- template <class T> operator T() const
+ template <class T> BOOST_GPU_ENABLED operator T() const
{
return initialized<T>().data();