Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8360297
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T11:25:08+00:00 2026-06-09T11:25:08+00:00

Seen it just now here . Never met such construction before and I do

  • 0

Seen it just now here.

Never met such construction before and I do not understand, what it means! And how it works in specialization, as typedefs do not generate new types:

Wrong:

template <typename T>
void a();
typedef int a_t;
typedef int b_t;
template<> void a<a_t>(){}
template<> void a<b_t>(){}

Compiles with warning: 'typedef' was ignored in this declaration, works as expected:

template <typename T>
void a();
typedef class a_t;
typedef class b_t;
template<> void a<a_t>(){}
template<> void a<b_t>(){}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T11:25:11+00:00Added an answer on June 9, 2026 at 11:25 am

    I finally unsserstood, how it works.

    typedef class a_t;
    

    is not like

    typedef int a_t;
    

    but like

    typedef int;
    

    So, I forward declared class a_t and then typedef‘d it to nothing. It also explains warning `typedef' was ignored in this declaration and all templates related stuff.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have seen similar questions here but I just can't understand them. I am
I'm just starting web-developing now (I do have experience with C#). And I've seen
I just downloaded 2.2.1 and i've seen that my input view does not adjust
Having a weird issue with IE that I've never seen before. A whole bunch
I just seen a job advert ask for UP development methodologies What is it?
I've just seen iOS 5.1 to iOS 6.0 API Differences released by Apple. They
I've just seen realisation of GenericRepository: namespace ContosoUniversity.DAL { public class GenericRepository<TEntity> where TEntity
I've just seen this case class in the Scala actors package: case class !
I have just seen this // Check to see if the request is a
<div id=SideBar class=sidebar mainbar> I've just seen this in a .aspx file. Is this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.