X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=blobdiff_plain;f=test%2Futil.cpp;h=0ac6f5fc08ea9363845f77f71daaa0e53a0c13a7;hp=9e4a99c39d93cac2d1392bf32cab47ed1c701255;hb=6f925ba9d6faf1077b73c5a5808259576081716a;hpb=5d6ae8a26c8d86531d0d85d2fefc67d617c73f56 diff --git a/test/util.cpp b/test/util.cpp index 9e4a99c..0ac6f5f 100644 --- a/test/util.cpp +++ b/test/util.cpp @@ -14,8 +14,7 @@ * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * along with this program; if not, see . */ #include @@ -26,6 +25,8 @@ using namespace pv::util; using ts = pv::util::Timestamp; +using std::bind; + namespace { QChar mu = QChar(0x03BC); @@ -203,7 +204,7 @@ BOOST_AUTO_TEST_CASE(format_time_minutes_test) { using namespace std::placeholders; - auto fmt = std::bind(format_time_minutes, _1, _2, true); + auto fmt = bind(format_time_minutes, _1, _2, true); BOOST_CHECK_EQUAL(fmt(ts( 0), 0), "+0:00"); BOOST_CHECK_EQUAL(fmt(ts( 1), 0), "+0:01");