diff -r c9c0f1b62e42 -r 5948441a1951 sources/list.h --- a/sources/list.h Sat Jul 23 12:15:52 2016 +0300 +++ b/sources/list.h Sat Jul 23 12:22:23 2016 +0300 @@ -399,6 +399,23 @@ } }; -typedef Vector ByteArray; +class ByteArray : public Vector +{ +public: + ByteArray(std::initializer_list initializerList); + + template + ByteArray(Args&& ...args); + + class String quote() const; +}; + +/*! + * \brief Constructs a byte array by passing all arguments to Vector's constructor. + * \param args Arguments to pass. + */ +template +ByteArray::ByteArray(Args&& ...args) : + Vector(args...) {} END_ZFC_NAMESPACE