mirror of
https://github.com/boostorg/utility.git
synced 2025-05-08 18:34:02 +00:00
Trim trailing spaces.
This commit is contained in:
parent
52e3e64a34
commit
cea4262e62
@ -32,7 +32,7 @@
|
|||||||
// It is safe to ignore the following warning from MSVC 7.1 or higher:
|
// 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"
|
// "warning C4351: new behavior: elements of array will be default initialized"
|
||||||
#pragma warning(disable: 4351)
|
#pragma warning(disable: 4351)
|
||||||
// It is safe to ignore the following MSVC warning, which may pop up when T is
|
// It is safe to ignore the following MSVC warning, which may pop up when T is
|
||||||
// a const type: "warning C4512: assignment operator could not be generated".
|
// a const type: "warning C4512: assignment operator could not be generated".
|
||||||
#pragma warning(disable: 4512)
|
#pragma warning(disable: 4512)
|
||||||
#endif
|
#endif
|
||||||
@ -40,8 +40,8 @@
|
|||||||
#ifndef BOOST_UTILITY_DOCS
|
#ifndef BOOST_UTILITY_DOCS
|
||||||
|
|
||||||
#ifdef BOOST_NO_COMPLETE_VALUE_INITIALIZATION
|
#ifdef BOOST_NO_COMPLETE_VALUE_INITIALIZATION
|
||||||
// Implementation detail: The macro BOOST_DETAIL_VALUE_INIT_WORKAROUND_SUGGESTED
|
// Implementation detail: The macro BOOST_DETAIL_VALUE_INIT_WORKAROUND_SUGGESTED
|
||||||
// suggests that a workaround should be applied, because of compiler issues
|
// suggests that a workaround should be applied, because of compiler issues
|
||||||
// regarding value-initialization.
|
// regarding value-initialization.
|
||||||
#define BOOST_DETAIL_VALUE_INIT_WORKAROUND_SUGGESTED
|
#define BOOST_DETAIL_VALUE_INIT_WORKAROUND_SUGGESTED
|
||||||
#endif
|
#endif
|
||||||
@ -164,13 +164,13 @@ class value_initialized
|
|||||||
initialized<T> m_data;
|
initialized<T> m_data;
|
||||||
|
|
||||||
public :
|
public :
|
||||||
|
|
||||||
BOOST_GPU_ENABLED
|
BOOST_GPU_ENABLED
|
||||||
value_initialized()
|
value_initialized()
|
||||||
:
|
:
|
||||||
m_data()
|
m_data()
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
BOOST_GPU_ENABLED
|
BOOST_GPU_ENABLED
|
||||||
T const & data() const
|
T const & data() const
|
||||||
{
|
{
|
||||||
@ -228,7 +228,7 @@ void swap ( value_initialized<T> & lhs, value_initialized<T> & rhs )
|
|||||||
class initialized_value_t
|
class initialized_value_t
|
||||||
{
|
{
|
||||||
public :
|
public :
|
||||||
|
|
||||||
template <class T> BOOST_GPU_ENABLED operator T() const
|
template <class T> BOOST_GPU_ENABLED operator T() const
|
||||||
{
|
{
|
||||||
return initialized<T>().data();
|
return initialized<T>().data();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user