From: bangerth Date: Mon, 16 Nov 2009 14:05:26 +0000 (+0000) Subject: Qualify sscanf properly with std::. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8245190525f0b3d09520b1ee18470127d0abff08;p=dealii-svn.git Qualify sscanf properly with std::. git-svn-id: https://svn.dealii.org/trunk@20117 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/base/source/parsed_function.cc b/deal.II/base/source/parsed_function.cc index c3d1513984..c92d0b743a 100644 --- a/deal.II/base/source/parsed_function.cc +++ b/deal.II/base/source/parsed_function.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2007, 2008 by the deal.II authors +// Copyright (C) 2007, 2008, 2009 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -85,7 +85,7 @@ namespace Functions { Utilities::split_string_list(const_list[i], '='); AssertThrow(this_c.size() == 2, ExcMessage("Invalid format")); double tmp; - AssertThrow( sscanf(this_c[1].c_str(), "%lf", &tmp), + AssertThrow( std::sscanf(this_c[1].c_str(), "%lf", &tmp), ExcMessage("Double number?")); constants[this_c[0]] = tmp; }