octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Deprecating C++ classes with static member functions


From: John W. Eaton
Subject: Re: Deprecating C++ classes with static member functions
Date: Wed, 6 Jul 2016 18:18:08 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.5.0

Similarly, what about global variables?

For example, if I move a global variable like

  int foo;

into a namespace, say

  namespace octave
  {
    int foo;
  }

is the best way to handle this to use

  __attribute__ ((deprecated ("msg")))
  static auto& foo = octave::foo;

?

jwe




reply via email to

[Prev in Thread] Current Thread [Next in Thread]