[Liblas-commits] hg: Removed assert(src); from read_n functions.
liblas-commits at liblas.org
liblas-commits at liblas.org
Mon Oct 19 15:43:40 EDT 2009
changeset 53a9a4496d45 in /home/www/liblas.org/hg
details: http://hg.liblas.org/main/hg?cmd=changeset;node=53a9a4496d45
summary: Removed assert(src); from read_n functions.
diffstat:
include/liblas/detail/utility.hpp | 7 -------
1 files changed, 0 insertions(+), 7 deletions(-)
diffs (38 lines):
diff -r 7f1aaecce916 -r 53a9a4496d45 include/liblas/detail/utility.hpp
--- a/include/liblas/detail/utility.hpp Mon Oct 19 14:20:23 2009 -0500
+++ b/include/liblas/detail/utility.hpp Mon Oct 19 20:42:20 2009 +0100
@@ -371,8 +371,6 @@
template <typename T>
inline void read_n(T& dest, std::istream& src, std::streamsize const& num)
{
- assert(src);
-
// TODO: Review and redesign errors handling logic if necessary
if (!src)
throw std::runtime_error("detail::liblas::read_n input stream is not readable");
@@ -388,8 +386,6 @@
template <>
inline void read_n<PointRecord>(PointRecord& dest, std::istream& src, std::streamsize const& num)
{
- assert(src);
-
// TODO: Review and redesign errors handling logic if necessary
if (!src)
throw std::runtime_error("detail::liblas::read_n input stream is not readable");
@@ -412,8 +408,6 @@
template <>
inline void read_n<VLRHeader>(VLRHeader& dest, std::istream& src, std::streamsize const& num)
{
- assert(src);
-
// TODO: Review and redesign errors handling logic if necessary
if (!src)
throw std::runtime_error("detail::liblas::read_n input stream is not readable");
@@ -430,7 +424,6 @@
template <>
inline void read_n<std::string>(std::string& dest, std::istream& src, std::streamsize const& num)
{
- assert(src);
assert(dest.max_size() >= static_cast<std::string::size_type>(num));
// TODO: Review and redesign errors handling logic if necessary
More information about the Liblas-commits
mailing list