DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] "virtual" C++ keyword used in rte_devargs.h and causes compilation error in C++
@ 2015-02-07  7:24 Ming Zhao
  2015-02-07 20:23 ` Neil Horman
  0 siblings, 1 reply; 5+ messages in thread
From: Ming Zhao @ 2015-02-07  7:24 UTC (permalink / raw)
  To: dev

The code is in rte_devargs.h:

rte_devargs.h:

                /** Used if type is RTE_DEVTYPE_VIRTUAL. */
                struct {
                        /** Driver name. */
                        char drv_name[32];
                } virtual;
        };

Which caused clang compiler to report error when this file is included
by a cpp file, the error message is:

In file included from net/dpdk/testing/base-test.cc:3:
In file included from net/dpdk/testing/base-test.h:8:
third-party/dpdk/lib/librte_eal/common/include/rte_devargs.h:89:5:
error: 'virtual' can only appear on non-static
      member functions
                } virtual;
                  ^

I think we should try to pick another name for this field. I would
suggest calling it "vdev" instead, or I'll be happy to take another name
if someone comes with a different idea.

Thanks!
Ming

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-02-08 13:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-07  7:24 [dpdk-dev] "virtual" C++ keyword used in rte_devargs.h and causes compilation error in C++ Ming Zhao
2015-02-07 20:23 ` Neil Horman
2015-02-08  6:33   ` Ming Zhao
2015-02-08  7:31     ` Ariel Rodriguez
2015-02-08 13:53       ` Neil Horman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).