Why is accessing type_name of a std::vector using classname::member ok but not instance::member

后端 未结 0 1884
不知归路
不知归路 2020-12-30 06:27

Observe the following code.

#include 
using Vd = std::vector;

void func()
{
    Vd vd;
    using type = Vd::value_type; //valid
          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题