From d5b64ca5ab244cbc770b11879fc2dd619d9de631 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Mon, 16 Nov 2009 14:05:26 +0000 Subject: [PATCH] Qualify sscanf properly with std::. git-svn-id: https://svn.dealii.org/trunk@20117 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/base/source/parsed_function.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.39.5