|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r60143 - in trunk: boost/proto libs/proto/doc/reference
From: eric_at_[hidden]
Date: 2010-03-03 21:47:47
Author: eric_niebler
Date: 2010-03-03 21:47:46 EST (Wed, 03 Mar 2010)
New Revision: 60143
URL: http://svn.boost.org/trac/boost/changeset/60143
Log:
add a default constructor to proto::literal
Text files modified:
trunk/boost/proto/literal.hpp | 4 ++++
trunk/libs/proto/doc/reference/literal.xml | 1 +
2 files changed, 5 insertions(+), 0 deletions(-)
Modified: trunk/boost/proto/literal.hpp
==============================================================================
--- trunk/boost/proto/literal.hpp (original)
+++ trunk/boost/proto/literal.hpp 2010-03-03 21:47:46 EST (Wed, 03 Mar 2010)
@@ -45,6 +45,10 @@
typedef typename detail::term_traits<T>::reference reference;
typedef typename detail::term_traits<T>::const_reference const_reference;
+ literal()
+ : base_type(terminal_type::make(T()))
+ {}
+
template<typename U>
literal(U &u)
: base_type(terminal_type::make(u))
Modified: trunk/libs/proto/doc/reference/literal.xml
==============================================================================
--- trunk/libs/proto/doc/reference/literal.xml (original)
+++ trunk/libs/proto/doc/reference/literal.xml 2010-03-03 21:47:46 EST (Wed, 03 Mar 2010)
@@ -61,6 +61,7 @@
</returns>
</method>
</method-group>
+ <constructor/>
<constructor>
<template>
<template-type-parameter name="U"/>
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk