Ignore:
Timestamp:
10/04/16 12:42:11 (8 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: No

Ready for Test: Yes/No?

Interface Changes: Yes/No?

What Interface Changed: Please list interface changes

Test Programs: List test programs

Put in Release Notes: Yes/No?

Module(s): Module Names change impacts.

Description: Describe your changes here...

Do not use C++11 feature.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/external-alma/atnf/PKSIO/NROReader.cc

    r3097 r3105  
    5454#include <string>
    5555#include <iomanip>
     56#include <cassert>
    5657
    5758using namespace std ;
     
    6061// to limit template argument to specified type
    6162template<class T>
    62 constexpr inline bool type_guard() {
     63inline bool type_guard() {
    6364  return false;
    6465}
    6566template<>
    66 constexpr inline bool type_guard<string>() {
     67inline bool type_guard<string>() {
    6768  return true;
    6869}
    6970template<>
    70 constexpr inline bool type_guard<String>() {
     71inline bool type_guard<String>() {
    7172  return true;
    7273}
     
    7576template<class T>
    7677inline String trim_nro_string(T const &s) {
    77   static_assert(type_guard<T>(), "");
     78  assert(type_guard<T>());
    7879  return s.substr(0, s.find_first_of('\0'));
    7980}
Note: See TracChangeset for help on using the changeset viewer.