[libcamera-devel] [PATCH v2 1/5] libcamera: Create DataValue and DataInfo
Jacopo Mondi
jacopo at jmondi.org
Tue Sep 24 19:23:25 CEST 2019
Hello,
On Tue, Sep 24, 2019 at 07:14:36PM +0200, Jacopo Mondi wrote:
> +/**
> + * \brief Assemble and return a string describing the value
> + * \return A string describing the DataValue
> + */
> +std::string DataValue::toString() const
> +{
> + switch (type_) {
> + case DataTypeBool:
> + return bool_ ? "True" : "False";
> + case DataTypeInteger:
> + return std::to_string(integer_);
> + case DataTypeInteger64:
> + return std::to_string(integer64_);
> + case DataTypeNone:
> + return "<None>";
> + }
> +}
Gcc complains there, clang does not. I just noticed after sending this
out... Will fix
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.libcamera.org/pipermail/libcamera-devel/attachments/20190924/68582bce/attachment.sig>
More information about the libcamera-devel
mailing list